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 3
3
# being manually executed.
4
4
set -e
5
5
TESTS_FROM_ENV=" $TESTS "
6
- TESTS=" **/*.js"
6
+ TESTS=" */Temporal/* */*.js"
7
7
if [ $# -ne 0 ]; then
8
- TESTS=" $@ " ;
8
+ TESTS=" */Temporal/ $@ " ;
9
9
elif [ ! -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
11
17
fi
12
18
13
19
TIMEOUT=${TIMEOUT:- 10000}
@@ -33,5 +39,5 @@ test262-harness \
33
39
--prelude " ../../dist/script.js" \
34
40
--timeout " $TIMEOUT " \
35
41
--preprocessor ../../test/preprocessor.test262.cjs \
36
- " */Temporal/ $TESTS " \
42
+ " $TESTS " \
37
43
| ../../test/parseResults.js
You can’t perform that action at this time.
0 commit comments