From c8b8d389bff741eec2a07325a65e7f1379caa08f Mon Sep 17 00:00:00 2001 From: Milosz Wasilewski Date: Thu, 28 Aug 2014 15:26:10 +0100 Subject: wa2host: added check for attachment existence 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 --- wa2host.yaml | 4 ++-- 1 file 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 -- cgit v1.2.3