From 8deb3fea680fd9ae99d9950509fa338a6287895b Mon Sep 17 00:00:00 2001 From: Manjeet Date: Mon, 11 Mar 2024 22:10:17 +0530 Subject: [PATCH] [M120 Migration] Remove hardcoded path of /opt/usr/apps inside bash script tests_run Currently tizen_src/ewk/tests_run script hardcodes path '/opt/usr/apps'. Instead use tzplatform-get tool to get value of TZ_SYS_RW_APP which returns the required path. Reference: https://review/tizen.org/gerrit/293968 Change-Id: Ice8fd487063bab7e7de55ea77b998b1f10bcb238 Signed-off-by: Manjeet --- tizen_src/ewk/tests_run | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tizen_src/ewk/tests_run b/tizen_src/ewk/tests_run index ed164dd..e98b6ad 100755 --- a/tizen_src/ewk/tests_run +++ b/tizen_src/ewk/tests_run @@ -104,12 +104,14 @@ done function it { sdb push ${rep_dir}${2}-0.1-0.armv7l.rpm /opt/usr/media/Downloads/ && sdb shell pkgcmd -i -t rpm -q -p /opt/usr/media/Downloads/${2}-0.1-0.armv7l.rpm || exit 7 + tz_sys_rw_app_value=`tzplatform-get -u 5001 TZ_SYS_RW_APP` + tz_sys_rw_app_path=${tz_sys_rw_app_value#*=} while read test ; do - echo /opt/usr/apps/${2}/bin/tct-${3}-core ${test} + echo ${tz_sys_rw_app_path}/${2}/bin/tct-${3}-core ${test} timeout 65 sdb shell > ${dir}${log}/${test}.log <