[TC Fixed] Delete the .tpk file used for the test
[platform/core/dotnet/launcher.git] / tests / TCs / Utils.py
index f6a3572..6babbb6 100755 (executable)
@@ -82,7 +82,10 @@ def app_install(tpk_path):
     tpk_name = Path(tpk_path).name
     raw = cmd(f"shell pkgcmd -i -t tpk -p {OWNER_DIR}{tpk_name}")
     if "key[end] val[ok]" not in raw:
+        cmd(f"shell rm {OWNER_DIR}{tpk_name}")
         return "FAIL"
+
+    cmd(f"shell rm {OWNER_DIR}{tpk_name}")
     return "OK"
 
 # Get the root path of the application
@@ -103,7 +106,7 @@ def launch_and_get_pid(mode, app_id):
 
 # Get the device type
 def get_device_type():
-    raw = cmd(f"shell cat /etc/config/model-config.xml | grep tizen.org/system/device_type")
+    raw = cmd(f"shell cat /etc/config/model-config.xml | grep tizen.org/feature/profile")
     return raw.split(">")[1].split("<")[0]
 
 # Create the System.Private.CoreLib native image