Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

Commit cbfc907

Browse files
committed
Make it easier to determine what shell and mode a test failed in.
1 parent efbd1ae commit cbfc907

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/runner

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,16 @@ function log() {
88
fi
99
}
1010

11-
log "Running tests under $SHELL in interactive-mode ..."
1211
error=0
1312

1413
for test in ${0%/*}/*_test.sh; do
15-
log "Running $test ..."
14+
log "Running $test under $SHELL (interactive) ..."
1615
"$SHELL" $* -i "$test" || error=1
1716
echo
1817
done
1918

20-
log "Running tests under $SHELL in non-interactive-mode ..."
21-
2219
for test in ${0%/*}/*_test.sh; do
23-
log "Running $test ..."
20+
log "Running $test under $SHELL (non-interactive) ..."
2421
"$SHELL" $* "$test" || error=1
2522
echo
2623
done

0 commit comments

Comments
 (0)