]> git.kaiwu.me - njs.git/commitdiff
Test262: improved skipping of tests.
authorDmitry Volyntsev <xeioexception@gmail.com>
Tue, 28 May 2024 21:16:14 +0000 (14:16 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 28 May 2024 21:59:26 +0000 (14:59 -0700)
The skipped tests (which are expected to fail) are not executed in order
to make output clearer.

test/test262

index fc7ef4d32865025a8329f563a447caca9ced6175..ce1f4a9367901079487085dd22cdc90d854bd449 100755 (executable)
@@ -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