Skip to content

Commit c8a2c4d

Browse files
committed
Fix test search in run-test-pass.sh
Using the find program with an argument "*" could lead to problems. If there are ".js" files in the executing directory then the shell replaces the asterisk with that filenames. The fix is simple: quote the argument which has the asterisk. JerryScript-DCO-1.0-Signed-off-by: Peter Gal [email protected]
1 parent 677a0a4 commit c8a2c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/runners/run-test-pass.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ rm -f $JS_FILES $JERRY_ERROR
5959

6060
if [ -d $TESTS ];
6161
then
62-
find $TESTS -path $TESTS/fail -prune -o -name [^N]*.js -print | sort > $JS_FILES
62+
find $TESTS -path $TESTS/fail -prune -o -name "[^N]*.js" -print | sort > $JS_FILES
6363
else
6464
if [ -f $TESTS ];
6565
then

0 commit comments

Comments
 (0)