summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2016-08-29 17:10:53 +0800
committerNaresh Kamboju <naresh.kamboju@linaro.org>2016-08-29 10:17:21 +0000
commite015c4e850666f84fb3ddecd09cca706aa0432e8 (patch)
tree92aac67932c337f58fcae076b98962765209a8ef
parentf07e5d32ff6ca13cc56029215a54059067d860b1 (diff)
downloadtest-definitions-sched-e015c4e850666f84fb3ddecd09cca706aa0432e8.tar.gz
v2: linux/smoke: fix output backup
Change-Id: I5d9c75b7ec6436a92877e5cd14bc796aaae72d17 Signed-off-by: Chase Qi <chase.qi@linaro.org>
-rwxr-xr-xautomated/linux/smoke/smoke.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/automated/linux/smoke/smoke.sh b/automated/linux/smoke/smoke.sh
index 42d4c90..4482595 100755
--- a/automated/linux/smoke/smoke.sh
+++ b/automated/linux/smoke/smoke.sh
@@ -2,9 +2,7 @@
. ../../lib/sh-test-lib
OUTPUT="$(pwd)/output"
-mkdir -p "${OUTPUT}"
RESULT_FILE="${OUTPUT}/result.txt"
-export RESULT_FILE
usage() {
echo "Usage: $0 [-s <true|false>]" 1>&2
@@ -38,8 +36,8 @@ run() {
}
# Test run.
-[ -f "${OUTPUT}" ] && \
-mv "${OUTPUT}" "${OUTPUT}_$(date +%Y%m%d%H%M%S)"
+[ -d "${OUTPUT}" ] && mv "${OUTPUT}" "${OUTPUT}_$(date +%Y%m%d%H%M%S)"
+mkdir -p "${OUTPUT}"
install
run "pwd"