Skip to content

Commit c88b2d4

Browse files
committed
test: is error output printed correctly
1 parent f003508 commit c88b2d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rewatch/tests/legacy.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ error_output=$(rewatch_legacy 2>&1 >/dev/null)
77
if [ $? -ne 0 ];
88
then
99
error "Error running rewatch legacy"
10-
printf "%s\n" "$error_output" >&2
10+
echo $error_output
1111
exit 1
1212
fi
1313

@@ -18,7 +18,7 @@ then
1818
success "Test package cleaned"
1919
else
2020
error "Error cleaning test package. File count was $file_count."
21-
printf "%s\n" "$error_output" >&2
21+
echo $error_output
2222
exit 1
2323
fi
2424

@@ -28,7 +28,7 @@ then
2828
success "Test package built"
2929
else
3030
error "Error building test package"
31-
printf "%s\n" "$error_output" >&2
31+
echo $error_output
3232
exit 1
3333
fi
3434

@@ -47,6 +47,6 @@ then
4747
success "Test package formatted. Got $git_diff_file_count changed files."
4848
else
4949
error "Error formatting test package"
50-
printf "%s\n" "$error_output" >&2
50+
echo $error_output
5151
exit 1
5252
fi

0 commit comments

Comments
 (0)