File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 33# being manually executed.
44set -e
55TESTS_FROM_ENV=" $TESTS "
6- TESTS=" **/*.js"
6+ TESTS=" */Temporal/* */*.js"
77if [ $# -ne 0 ]; then
8- TESTS=" $@ " ;
8+ TESTS=" */Temporal/ $@ " ;
99elif [ ! -z " $TESTS_FROM_ENV " ]; then
10- TESTS=" $TESTS_FROM_ENV " ;
10+ # VSCode launch.json passes the full path to the current file in some cases,
11+ # so pass that on.
12+ if [[ " $TESTS_FROM_ENV " =~ ^/.* ]]; then
13+ TESTS=" $TESTS_FROM_ENV " ;
14+ else
15+ TESTS=" */Temporal/$TESTS_FROM_ENV " ;
16+ fi
1117fi
1218
1319TIMEOUT=${TIMEOUT:- 10000}
@@ -33,5 +39,5 @@ test262-harness \
3339 --prelude " ../../dist/script.js" \
3440 --timeout " $TIMEOUT " \
3541 --preprocessor ../../test/preprocessor.test262.cjs \
36- " */Temporal/ $TESTS " \
42+ " $TESTS " \
3743 | ../../test/parseResults.js
You can’t perform that action at this time.
0 commit comments