Skip to content

Commit 429273e

Browse files
12wrigjaptomato
authored andcommitted
Add a warning to the test262 test runner script if the submodule hasn't
been initialized.
1 parent 07ea694 commit 429273e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test262.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2+
# Note that this script is only expected to be run via `npm run test262`, not by
3+
# being manually executed.
24
set -e
35

46
TESTS=${@:-"**/*.js"}
@@ -11,6 +13,11 @@ else
1113
fi
1214
if [ $threads -gt 8 ]; then threads=8; fi
1315

16+
if [ ! -d "$(dirname "$0")"/../test262/test/ ]; then
17+
echo "Missing Test262 directory. Try initializing the submodule with 'git submodule init && git submodule update'";
18+
exit 1;
19+
fi
20+
1421
cd "$(dirname "$0")"/../test262/test/
1522
test262-harness \
1623
-t $threads \

0 commit comments

Comments
 (0)