diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2020-01-15 15:10:35 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2020-01-17 11:35:45 +0000 |
commit | d12b504ac6a8284d12085d82c564854c6089427a (patch) | |
tree | 7d3d5045ef72a0717fe3e907f89f03f5d9ee73a4 /tcwg_gnu-build.sh | |
parent | 981d178df10e90f784a2034e5d562247a17f6921 (diff) |
tcwg_gnu-build.sh: Make top_artifacts is an absolute directory
The first tcwg_gnu-build.sh script uses a full path for top_artifacts
(where sumfiles and other results are stored by ABE), but the bisect
script calls tcwg_gnu-build.sh again but with rel_artifacts, which
means that ABE stores results in a different location from the main
run. As a result, check_regression cannot find them.
This patch fixes that by converting top_artifacts to an absolute
directory if neeed.
Change-Id: I6e9fae1104fbc2cbe2bbcbe95c63a28c784f63be
Diffstat (limited to 'tcwg_gnu-build.sh')
-rwxr-xr-x | tcwg_gnu-build.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tcwg_gnu-build.sh b/tcwg_gnu-build.sh index 53f52a91..de63badd 100755 --- a/tcwg_gnu-build.sh +++ b/tcwg_gnu-build.sh @@ -20,6 +20,11 @@ rr[baseline_branch]="${rr[baseline_branch]-linaro-local/ci/${rr[ci_project]}/${r rr[update_baseline]="${rr[update_baseline]-update}" rr[top_artifacts]="${rr[top_artifacts]-$(pwd)/artifacts}" +# Resolve top_artifacts to absolute dir because some of the subsequent +# processes work below pwd and would write their artifacts in a wrong +# location +rr[top_artifacts]=$(abs_path "${rr[top_artifacts]}") + # {toolchain_name}-{toolchain_ver}-{target}-{type_of_test} IFS=- read -a ci_config <<EOF ${rr[ci_config]} |