aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-08-28 15:26:10 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-08-28 15:26:10 +0100
commitc8b8d389bff741eec2a07325a65e7f1379caa08f (patch)
treecdeea4cee0974a7a424691a2d001c4dcc6888594
parent82c67bf66bde8ab314d369c2e1c6f742bfad8c64 (diff)
wa2host: added check for attachment existence2014.112014.102014.09
If log files don't exist proper signalling isn't sent between host and target. Simple check for file existence was added to prevent this situation. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
-rw-r--r--wa2host.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/wa2host.yaml b/wa2host.yaml
index 2ad9937..293e92f 100644
--- a/wa2host.yaml
+++ b/wa2host.yaml
@@ -27,7 +27,7 @@ run:
- lava-test-case step6-$SIGNAL_PREFIX-prepare-config --shell ./prepare-config.py --prefix $SIGNAL_PREFIX
- lava-test-case step7-$SIGNAL_PREFIX-prepare-device --shell ./prepare-device.sh $MODE
- lava-test-case step8-$SIGNAL_PREFIX-run-workload --shell ./run-workload.sh $AGENDA $JOB_NAME
- - lava-test-case-attach step8-$SIGNAL_PREFIX-run-workload ./$JOB_NAME/results.csv
- - lava-test-case-attach step8-$SIGNAL_PREFIX-run-workload ./$JOB_NAME/run.log
+ - if [ -f ./$JOB_NAME/results.csv ]; then lava-test-case-attach step8-$SIGNAL_PREFIX-run-workload ./$JOB_NAME/results.csv; fi
+ - if [ -f ./$JOB_NAME/run.log ]; then lava-test-case-attach step8-$SIGNAL_PREFIX-run-workload ./$JOB_NAME/run.log; fi
- lava-test-case step9-$SIGNAL_PREFIX-tear-down --shell ./tear-down.sh $JOB_NAME
- lava-test-case step10-$SIGNAL_PREFIX-multinode-sync --shell lava-sync $SIGNAL_PREFIX-finished