Skip to content

Commit

Permalink
sharness: avoid useless call to test_eval_()
Browse files Browse the repository at this point in the history
When using -x this useless call to test_eval_() makes us
print a useless debug line with only "+ :".
  • Loading branch information
chriscool committed May 27, 2019
1 parent 1a59706 commit 1adb920
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sharness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ test_run_() {
fi
fi

if test -z "$immediate" || test $eval_ret = 0 || test -n "$expecting_failure"; then
if test -z "$immediate" || test $eval_ret = 0 ||
test -n "$expecting_failure" && test "$test_cleanup" != ":"
then
test_eval_ "$test_cleanup"
fi
if test "$verbose" = "t" && test -n "$HARNESS_ACTIVE"; then
Expand Down

0 comments on commit 1adb920

Please # to comment.