Skip to content

Commit 488c287

Browse files
committed
Should keep the status
1 parent 86bfa22 commit 488c287

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/run-tests.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ LOGFILE=$FWDIR/unit-tests.out
2424
rm -f $LOGFILE
2525

2626
SPARK_TESTING=1 NOT_CRAN=true $FWDIR/../bin/spark-submit --driver-java-options "-Dlog4j.configuration=file:$FWDIR/log4j.properties" --conf spark.hadoop.fs.defaultFS="file:///" $FWDIR/pkg/tests/run-all.R 2>&1 | tee -a $LOGFILE
27-
echo "PIPESTATUS: "$((PIPESTATUS[0]))
28-
FAILED=$((PIPESTATUS[0]||$FAILED))
27+
PSTATUS=$((PIPESTATUS[0]))
28+
echo "PIPESTATUS: "$PSTATUS
29+
FAILED=$(($PSTATUS||$FAILED))
2930

3031
NUM_TEST_WARNING="$(grep -c -e 'Warnings ----------------' $LOGFILE)"
3132

0 commit comments

Comments
 (0)