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 pgal.u-szeged@partner.samsung.com
This commit is contained in:
Peter Gal
2015-05-22 19:11:59 +02:00
parent 0ef0b0d595
commit e5e876cf95
+1 -1
View File
@@ -59,7 +59,7 @@ rm -f $JS_FILES $JERRY_ERROR
if [ -d $TESTS ];
then
find $TESTS -path $TESTS/fail -prune -o -name [^N]*.js -print | sort > $JS_FILES
find $TESTS -path $TESTS/fail -prune -o -name "[^N]*.js" -print | sort > $JS_FILES
else
if [ -f $TESTS ];
then