[TC Fixed] Delete the .tpk file used for the test
authorj-h.choi <j-h.choi@samsung.com>
Wed, 13 Jan 2021 04:49:01 +0000 (13:49 +0900)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Thu, 21 Jan 2021 04:40:23 +0000 (13:40 +0900)
Change-Id: I9ff999bb3b21b702f7bfcb1179cab73074e3850c

tests/TCs/Utils.py

index 60eb979..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