[TC Fixed] Modify clean method in LAUNCH test
authorj-h.choi <j-h.choi@samsung.com>
Wed, 30 Dec 2020 23:41:16 +0000 (08:41 +0900)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Mon, 4 Jan 2021 06:09:14 +0000 (15:09 +0900)
Change-Id: Ia1d1e9bf906903af35d97c92f35b1b6ff70439ae

tests/TCs/7_LAUNCH/LAUNCH.py

index 5f9d631..062e118 100755 (executable)
@@ -191,14 +191,16 @@ def clean():
     cmd(f"uninstall org.tizen.example.Launcher_TC_LAUNCH_02")
     cmd(f"uninstall org.tizen.example.Launcher_TC_LAUNCH_03.Tizen")
 
-    cmd(f"shell mount -o remount,rw /")
-    cmd(f"push dotnet.loader.origin /usr/share/aul/dotnet.loader")
-    cmd(f"shell chsmack -a _ /usr/share/aul/dotnet.loader")
-    cmd(f"shell chmod 644 /usr/share/aul/dotnet.loader")
-    cmd(f"shell reboot -f")
-
-    subprocess.run((f"rm dotnet.loader").split(), encoding="utf-8", stdout=subprocess.PIPE).stdout
-    subprocess.run((f"rm dotnet.loader.origin").split(), encoding="utf-8", stdout=subprocess.PIPE).stdout
+    for tc in tc_array:
+        if f"{tc.__name__}" == "TC_04":
+            cmd(f"shell mount -o remount,rw /")
+            cmd(f"push dotnet.loader.origin /usr/share/aul/dotnet.loader")
+            cmd(f"shell chsmack -a _ /usr/share/aul/dotnet.loader")
+            cmd(f"shell chmod 644 /usr/share/aul/dotnet.loader")
+            cmd(f"shell reboot -f")
+
+            subprocess.run((f"rm dotnet.loader").split(), encoding="utf-8", stdout=subprocess.PIPE).stdout
+            subprocess.run((f"rm dotnet.loader.origin").split(), encoding="utf-8", stdout=subprocess.PIPE).stdout
 
 # Main entry point
 def main():