From: Dmitry Volyntsev Date: Tue, 28 May 2024 21:16:14 +0000 (-0700) Subject: Test262: improved skipping of tests. X-Git-Tag: 0.8.5~19 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=7854b9eb6e416a8595d8147a9032bacf83c474f6;p=njs.git Test262: improved skipping of tests. The skipped tests (which are expected to fail) are not executed in order to make output clearer. --- diff --git a/test/test262 b/test/test262 index fc7ef4d3..ce1f4a93 100755 --- a/test/test262 +++ b/test/test262 @@ -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 \ @@ -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