Skip to content

Commit f003508

Browse files
committed
fix: legacy tests inconsistency
1 parent b730d9f commit f003508

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rewatch/tests/legacy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ cd ../testrepo/packages/compiled-by-legacy
44
bold "Test: It should use the legacy build system"
55

66
error_output=$(rewatch_legacy 2>&1 >/dev/null)
7-
if [ -n "$error_output" ];
7+
if [ $? -ne 0 ];
88
then
9-
error "Error running rewatch"
9+
error "Error running rewatch legacy"
1010
printf "%s\n" "$error_output" >&2
1111
exit 1
1212
fi

0 commit comments

Comments
 (0)