Skip to content

Commit

Permalink
test: Show test suite name in failure list
Browse files Browse the repository at this point in the history
  • Loading branch information
ffrank committed Mar 1, 2024
1 parent 9c33789 commit 8570028
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ function run-testsuite() {
# if not running all tests or if this test is not explicitly selected, skip it
if test -z "$testsuite" || test "test-$testsuite" = "$testname"; then
fold_start "$testname"
"$@" || failures=$([ -n "$failures" ] && echo "$failures\\n$@" || echo "$@")
description="$testname ($@)"
"$@" || failures=$([ -n "$failures" ] && echo "$failures\\n$description" || echo "$description")
fold_end "$testname"
fi
}
Expand Down

0 comments on commit 8570028

Please sign in to comment.