diff options
author | Laurent Alfonsi <laurent.alfonsi@linaro.org> | 2023-06-08 09:42:33 +0200 |
---|---|---|
committer | Laurent Alfonsi <laurent.alfonsi@linaro.org> | 2023-06-29 15:22:45 +0000 |
commit | 3a834eeee5ab19b8fb0c3b47d6e3b7e39ba8d9d1 (patch) | |
tree | 71b894c717e5930142a2b63fd36117f8a4fdd993 /tcwg-benchmark.sh | |
parent | 657a7d24b5ffc8808f3306d94d9eae29e988dc34 (diff) |
tcwg-benchmark.sh: Add results_dest parameter to specify the dir to move the results
Change-Id: Ie47ac521ab114cb5daecc3036dc8e3c934acb22b
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-x | tcwg-benchmark.sh | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh index 531412eb..6eddc91d 100755 --- a/tcwg-benchmark.sh +++ b/tcwg-benchmark.sh @@ -23,11 +23,12 @@ obligatory_variables \ sysroot \ forceinstall \ builder \ - results_id \ + results_dest \ WORKSPACE \ reboot \ ignore_errors \ - clean_older_than + clean_older_than \ + hw_tag declare -g \ boardname \ image_arch \ @@ -42,11 +43,12 @@ declare -g \ sysroot \ forceinstall \ builder \ - results_id \ + results_dest \ WORKSPACE \ reboot \ ignore_errors \ - clean_older_than + clean_older_than \ + hw_tag # Make shellcheck happy and workaround Jenkins not defining variables # for empty arguments. @@ -259,12 +261,6 @@ case "$sysroot" in esac } -if echo "$results_id" | grep "\.\." >/dev/null; then - echo "ERROR: results_id should not escape /home/tcwg-benchmark/results* hierarchy; do not use \"..\"" - exit 1 -fi - -hw_tag="${results_id%%/*}" case "$hw_tag:$boardname:$image_arch" in apm_32:*-apm-*:armhf) ;; apm_64:*-apm-*:arm64) ;; @@ -279,7 +275,7 @@ case "$hw_tag:$boardname:$image_arch" in qc_32:*-qc-*:armhf) ;; qc_64:*-qc-*:arm64) ;; *) - echo "ERROR: results_id does not start with a valid hw_tag: $hw_tag" + echo "ERROR: hw_tag parameter is not valid : $hw_tag" exit 1 ;; esac @@ -438,7 +434,7 @@ case "$bench_list" in --cflags "$cflags" \ --ldflags "$ldflags" \ --forceinstall "true" \ - --resultsdest "bkp-01.tcwglab:/home/tcwg-benchmark/results-${results_id}/$boardname" \ + --resultsdest "${results_dest}/$boardname" \ --verbose true ;; *) # any others keywords corresponds to spec2xxx (either 2006 or 2017) @@ -470,7 +466,7 @@ case "$bench_list" in ${sysroot:+--sysroot "$sysroot"} \ --toolchain "$toolchain_type" \ $support_fortran_opt \ - --resultsdest "bkp-01.tcwglab:/home/tcwg-benchmark/results-${results_id}/$boardname" \ + --resultsdest "${results_dest}/$boardname" \ --nodename "$boardname" \ --forceinstall "${forceinstall}" \ ${clean_older_than:+--clean_older_than "$clean_older_than"} \ |