Add quiet mode for test runner(s) (#2228)
In one of the previous PR we have encountered a problem, where the Travis cuts off the test execution as the generated log file is too big. By adding a quiet mode for the test runners, we will only report the failing tests. JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
This commit is contained in:
@@ -17,6 +17,13 @@
|
||||
DIR="$1"
|
||||
shift
|
||||
|
||||
VERBOSE=1
|
||||
if [ "$1" == "-q" ]
|
||||
then
|
||||
unset VERBOSE
|
||||
shift
|
||||
fi
|
||||
|
||||
UNITTEST_ERROR=$DIR/unittests.failed
|
||||
UNITTEST_OK=$DIR/unittests.passed
|
||||
|
||||
@@ -76,7 +83,7 @@ do
|
||||
|
||||
failed=$((failed+1))
|
||||
else
|
||||
echo "[$tested/$total] $cmd_line: PASS"
|
||||
test $VERBOSE && echo "[$tested/$total] $cmd_line: PASS"
|
||||
|
||||
echo "$unit_test" >> $UNITTEST_OK
|
||||
|
||||
|
||||
Reference in New Issue
Block a user