diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2019-09-19 14:47:36 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2019-10-10 08:02:39 +0000 |
commit | d371c65ca1bc68f310e042943ae7041559c7f310 (patch) | |
tree | c0a6b49fef37b0b831cc3a38841e35e5bc384a7c /tcwg-benchmark.sh | |
parent | 031d069a9b33c7a44c87a5927b9f94f791d4bd8d (diff) |
tcwg-benchmark.sh: Simplify parameter passing through ssh
... by using remote_exec, which quotes parameters appropriately.
Change-Id: Ic62a08fab198b9293873541aa49a90c9e402c9a9
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-x | tcwg-benchmark.sh | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh index ae9208e0..f627eb87 100755 --- a/tcwg-benchmark.sh +++ b/tcwg-benchmark.sh @@ -262,24 +262,25 @@ if $prepare_board; then --action start_board --verbose fi -ssh -t -Snone -p$run_container_port "$run_container_host" bmk-scripts/run.sh \ - --bench "$(printf '%q' "$bench_list")" \ - --config "${BUILD_NUMBER}-$run_profile" \ - --cflags "$(printf '%q' "$cflags")" \ - --ldflags "$(printf '%q' "$ldflags")" \ - --ccprefix "$ccprefix" \ - --extension "$extension" \ - --ignore_errors "$ignore_errors" \ - --input_size "$input_size" \ - --iterations "$iterations" \ - --run_profile "$run_profile" \ - "${sysroot:+--sysroot "$sysroot"}" \ - --toolchain "$toolchain_type" \ - --resultsdest "bkp-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 +remote_exec "$run_container_host:$run_container_port:-t -Snone" \ + bmk-scripts/run.sh \ + --bench "$bench_list" \ + --config "${BUILD_NUMBER}-$run_profile" \ + --cflags "$cflags" \ + --ldflags "$ldflags" \ + --ccprefix "$ccprefix" \ + --extension "$extension" \ + --ignore_errors "$ignore_errors" \ + --input_size "$input_size" \ + --iterations "$iterations" \ + --run_profile "$run_profile" \ + "${sysroot:+--sysroot "$sysroot"}" \ + --toolchain "$toolchain_type" \ + --resultsdest "bkp-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 if $prepare_board; then remote_exec "$run_container_host:$run_container_port:-t -Snone" \ |