summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2018-04-03 14:57:00 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2018-04-11 17:07:36 +0000
commitbf4b25b06b5e3535fa6f26a757f7f3b4870e06f3 (patch)
tree09d0f702c917a5ab95675466e83b719171f2debf
parent931b2cc50ad17fb1d915736be7990cf3ff753a31 (diff)
workload-automation: fix AEP regex
Remove unnecessary quotation marks in the regex and also support WAv3 config.yaml file in the WA_HOME. Change-Id: Ifc015b493f2daccf31baa59136d8f14f82fa09c8 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
-rwxr-xr-xautomated/android/workload-automation/workload-automation.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/automated/android/workload-automation/workload-automation.sh b/automated/android/workload-automation/workload-automation.sh
index 263b86f..ae6ea74 100755
--- a/automated/android/workload-automation/workload-automation.sh
+++ b/automated/android/workload-automation/workload-automation.sh
@@ -139,7 +139,11 @@ if [ -n "${PROBE}" ]; then
CONFIG_FILE=$(basename "$(grep -rl "${PROBE}" .)")
cd -
# update AEP config path on agenda
- sed -i "s|\$WA_EXTENSION_PATHS/*.*|\$WA_EXTENSION_PATHS/'${CONFIG_FILE}'\"|" agenda.yaml
+ sed -i "s|\$WA_EXTENSION_PATHS/*.*|\$WA_EXTENSION_PATHS/${CONFIG_FILE}\"|" agenda.yaml
+ # update AEP config path on config.yaml
+ if [ -f /root/.workload_automation/config.yaml ]; then
+ sed -i "s|\$WA_EXTENSION_PATHS/*.*|\$WA_EXTENSION_PATHS/${CONFIG_FILE}\"|" /root/.workload_automation/config.yaml
+ fi
)
fi