Skip to content
Closed
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
7 changes: 4 additions & 3 deletions python/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ FWDIR="$(cd "`dirname "$0"`"; cd ../; pwd)"
cd "$FWDIR/python"

FAILED=0
LOG_FILE=unit-tests.log

rm -f unit-tests.log
rm -f $LOG_FILE

# Remove the metastore and warehouse directory created by the HiveContext tests in Spark SQL
rm -rf metastore warehouse

function run_test() {
echo "Running test: $1"
echo "Running test: $1" | tee -a $LOG_FILE

SPARK_TESTING=1 time "$FWDIR"/bin/pyspark $1 2>&1 | tee -a unit-tests.log
SPARK_TESTING=1 time "$FWDIR"/bin/pyspark $1 2>&1 | tee -a $LOG_FILE

FAILED=$((PIPESTATUS[0]||$FAILED))

Expand Down