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:
@@ -59,7 +59,7 @@ rm -f $JS_FILES $JERRY_ERROR
|
|||||||
|
|
||||||
if [ -d $TESTS ];
|
if [ -d $TESTS ];
|
||||||
then
|
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
|
else
|
||||||
if [ -f $TESTS ];
|
if [ -f $TESTS ];
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user