summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2019-03-14 14:37:52 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2019-03-15 09:12:44 +0000
commit7404092ade6be57c39e0dbf50b4375d29e69d569 (patch)
tree931a3ca3ccccab48d65de75439ae435651d03842
parent258dc2d14d1374840daa7cb41154dfcdb0b41d55 (diff)
tcwg-benchmark.sh: Add support for clean_older_than
... to remove old results and avoid filling up the disk. Change-Id: Ife87756fc92f48717baa0f84c7c3fe16b49b1899
-rwxr-xr-xtcwg-benchmark.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh
index fbb49111..6fa63c22 100755
--- a/tcwg-benchmark.sh
+++ b/tcwg-benchmark.sh
@@ -25,6 +25,7 @@ NODE_NAME="$NODE_NAME"
WORKSPACE="$WORKSPACE"
reboot="$reboot"
ignore_errors="$ignore_errors"
+clean_older_than="$clean_older_than"
# Jenkins doesn't define variables when parameter value is empty (like cflags),
# so enable "set -u" only after above binding of variables.
@@ -254,4 +255,5 @@ ssh -t -Snone "$boardname" bmk-scripts/run.sh \
--resultsdest "dev-01.tcwglab:/home/tcwg-benchmark/results-${results_id}/${NODE_NAME}" \
--nodename "${NODE_NAME}" \
--forceinstall "${forceinstall}" \
+ "${clean_older_than:+--clean_older_than "$clean_older_than"}" \
--verbose true