From 39d99897929f9441e61799a8304a4514788da162 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=B5=9C=EC=A2=85=ED=97=8C/MDE=20Lab=28SR=29/=EC=82=BC?= =?utf8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 10 Jul 2023 13:44:16 +0900 Subject: [PATCH] [Bug fix] Added reboot to avoid mount issue for RO app (#467) --- tests/TCs/6_TOOL/TOOL.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/TCs/6_TOOL/TOOL.py b/tests/TCs/6_TOOL/TOOL.py index 7f21487..5361c35 100755 --- a/tests/TCs/6_TOOL/TOOL.py +++ b/tests/TCs/6_TOOL/TOOL.py @@ -439,6 +439,10 @@ def TC_17(): if "1 file(s) pushed. 0 file(s) skipped." in raw: cmd(f"shell install_preload_pkg") + cmd(f"shell reboot -f") + sleep(60) + + cmd(f"root on") cmd(f"shell mount -o remount,ro /") cmd(f"shell dotnettool --ni-regen-all-app") @@ -512,7 +516,6 @@ def TC_19(): raw = cmd(f"push {tpk_path} /usr/apps/.preload-tpk/") if "1 file(s) pushed. 0 file(s) skipped." in raw: cmd(f"shell install_preload_pkg") - cmd(f"shell mount -o remount,ro /") pkg_id = f"org.tizen.example.Launcher_TC_TOOL_09.Tizen" @@ -523,6 +526,12 @@ def TC_19(): if exist(f"{root_path}/bin/.native_image"): return "FAIL : The .native_image folder not should exist" + cmd(f"shell reboot -f") + sleep(60) + + cmd(f"root on") + cmd(f"shell mount -o remount,ro /") + cmd(f"shell dotnettool --ni-pkg {pkg_id}") if not exist(f"{DOTNET_DIR}apps/{pkg_id}/bin/.native_image"): -- 2.7.4