Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
  • Loading branch information
galpeter committed May 27, 2015
commit e5e876cf9506ba8f3483158c326bcb9d6b557770
2 changes: 1 addition & 1 deletion tools/runners/run-test-pass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down