Skip to content

Commit

Permalink
Test262: improved skipping of tests.
Browse files Browse the repository at this point in the history
The skipped tests (which are expected to fail) are not executed in order
to make output clearer.
  • Loading branch information
xeioex committed May 28, 2024
1 parent 8226e6a commit 7854b9e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test262
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ for njs_test in $NJS_TESTS; do
running $njs_test $njs_log
END

if [ "$NJS_SKIP_LIST" != "${NJS_SKIP_LIST#*$njs_test*}" ]; then
skip $njs_test
continue
fi

status=0

NJS_PATH=$njs_paths \
Expand All @@ -28,11 +33,6 @@ END
cat $njs_log >> $NJS_TEST_LOG
njs_out=`cat $njs_log`

if [ "$NJS_SKIP_LIST" != "${NJS_SKIP_LIST#*$njs_test*}" ]; then
skip $njs_test
continue
fi

if [ "$status" -eq 0 ]; then
if [ -n "$njs_negative" ]; then
failed $njs_test $njs_log
Expand Down

0 comments on commit 7854b9e

Please sign in to comment.