Remove unnecessary subfolder in tests/jerry/fail/ (#1783)

There is no need to create error code named subfolders since
every failing tests return with the same code.

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
Robert Sipka
2017-04-28 09:17:23 +02:00
committed by GitHub
parent 14c455bcd8
commit 56802c22a1
41 changed files with 5 additions and 5 deletions
+5 -5
View File
@@ -118,13 +118,13 @@ ENGINE_TEMP=`mktemp engine-out.XXXXXXXXXX`
for test in `cat $TEST_FILES`
do
error_code=`echo $test | grep -e "^.\/fail\/[0-9]*\/" -o | cut -d / -f 3`
if [ "$error_code" = "" ]
if [[ $test =~ ^\.\/fail\/ ]]
then
PASS="PASS"
error_code=0
else
error_code=1
PASS="PASS (XFAIL)"
else
error_code=0
PASS="PASS"
fi
full_test=$TESTS_DIR/${test#./}