Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Add missing checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Boehrsi authored and florianhaar committed Oct 24, 2019
1 parent 0e8e04a commit d886922
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/test.runIntegrationTests.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/bin/bash

LOG_FILE=test_driver/logs/log.txt
LOG_FOLDER=test_driver/logs
LOG_FILE=${LOG_FOLDER}/log.txt
success=0
failed=0

cd ..
if [[ ! -d "$LOG_FOLDER" ]]; then
mkdir ${LOG_FOLDER}
fi
if [[ -f "$LOG_FILE" ]]; then
rm ${LOG_FILE}
fi
Expand All @@ -13,7 +18,7 @@ for test in test_driver/*
do
if [[ -f "$test" ]]; then
echo "Running test: $test"
flutter drive --target=test_driver/setup/app.dart --driver=${test} --flavor development >> $LOG_FILE 2>&1
flutter drive --target=test_driver/setup/app.dart --driver=${test} --flavor development >> ${LOG_FILE} 2>&1
if [[ $? -eq 0 ]]; then
echo "$test successfully finished"
((success++))
Expand Down

0 comments on commit d886922

Please sign in to comment.