diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2019-09-14 07:12:58 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2019-09-14 07:19:28 +0000 |
commit | 2061f926453a1ce79fd408e88047996af4cb829b (patch) | |
tree | c77a67666c9c3dc2ba558d4bfb3603558f53a79a /tcwg-benchmark.sh | |
parent | 347918f25bc3a0866aac7216399517f1ece8d3e0 (diff) |
tcwg-benchmark.sh: Bind-mount $WORKSPACE inside benchmarking container
... to enable removal of stale/aborted benchmarking containers via
$WORKSPACE/.lock cleanup.
Stale benchmarking containers are dangerous due to perf workaround
running inside, which steals samples from the "measuring" perf.
Change-Id: I54dfbb42e5d04ff49c9bfb591df681cf16c5b781
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-x | tcwg-benchmark.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh index db45f7c1..0f6dac26 100755 --- a/tcwg-benchmark.sh +++ b/tcwg-benchmark.sh @@ -243,9 +243,10 @@ case "$testmode" in benchmark) input_size="ref" ;; esac -# Start a container to run the benchmarks in +# Start a container to run the benchmarks in. +# We install SPEC in /home/tcwg-benchmark, so bind-mount it as $WORKSPACE. # FIXME: Do we ever want a different distro here? -./start-container-docker.sh --session-host "$boardname" --label "tcwg-$target-bmk" --distro "$build_container_tag" --task bench --docker_opts "--privileged" --prefix run_ > run-container.sh +WORKSPACE=$HOME ./start-container-docker.sh --session-host "$boardname" --label "tcwg-$target-bmk" --distro "$build_container_tag" --task bench --docker_opts "--privileged" --prefix run_ > run-container.sh trap "run_container_cleanup" EXIT . ./run-container.sh |