diff options
author | Arthur She <arthur.she@linaro.org> | 2020-10-16 19:39:48 -0700 |
---|---|---|
committer | Arthur She <arthur.she@linaro.org> | 2020-10-16 19:39:48 -0700 |
commit | 6efa980125e3ff1ccc9831f6c3745a81fe5e4730 (patch) | |
tree | fadd5f963359fb040c82870f4b61007146e38217 | |
parent | 858400739134b3c70ea74987b786e337a450a76a (diff) |
igt: check directory with test -d
Signed-off-by: Arthur She <arthur.she@linaro.org>
-rw-r--r-- | automated/linux/igt/igt-test-upload-test-log.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/automated/linux/igt/igt-test-upload-test-log.yaml b/automated/linux/igt/igt-test-upload-test-log.yaml index 2a08f7a..2ee46c6 100644 --- a/automated/linux/igt/igt-test-upload-test-log.yaml +++ b/automated/linux/igt/igt-test-upload-test-log.yaml @@ -55,7 +55,7 @@ run: - echo "**********************************************"; - echo "************ Dump IGT test result ************"; - echo "**********************************************"; - - [ -d "/root/dump-frames/" ] || mkdir -p /root/dump-frames/ + - test -d "/root/dump-frames/" || mkdir -p /root/dump-frames/ - if [ -f "${IGT_DIR}/results/results.json.bz2" ]; then cp ${IGT_DIR}/results/results.json.bz2 /root/dump-frames/ ; bunzip2 ${IGT_DIR}/results/results.json.bz2; fi - cp ${IGT_DIR}/results/results.json /root/dump-frames/ - ./print-test-result.py -f ${IGT_DIR}/results/results.json |