Skip to content

Commit 945e74c

Browse files
Update test/install/install_test.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent e2d8208 commit 945e74c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

test/install/install_test.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ unset RUNFILES_DIR RUNFILES_MANIFEST_FILE TEST_SRCDIR
2828

2929
# Verify the binary starts and can evaluate a trivial Tcl expression.
3030
echo 'puts "install_test_ok"' > test_script.tcl
31-
OUTPUT=$(./openroad -no_init -no_splash -exit test_script.tcl 2>&1)
32-
33-
if echo "$OUTPUT" | grep -q "install_test_ok"; then
31+
if OUTPUT=$(./openroad -no_init -no_splash -exit test_script.tcl 2>&1) && echo "$OUTPUT" | grep -q "install_test_ok"; then
3432
echo "PASS: installed binary started successfully"
3533
else
36-
echo "FAIL: installed binary did not produce expected output"
34+
echo "FAIL: installed binary failed to start or produced unexpected output"
3735
echo "Output was: $OUTPUT"
3836
exit 1
3937
fi

0 commit comments

Comments
 (0)