[emul32][mltrain]fix TNINE4228 documents folder is deleted 98/317898/1
authorchen <chen89.chen@samsung.com>
Sat, 21 Sep 2024 01:41:15 +0000 (09:41 +0800)
committerchen <chen89.chen@samsung.com>
Sat, 21 Sep 2024 01:41:20 +0000 (09:41 +0800)
Change-Id: I8ef78a55f99a3b408d927db745cc7f432d09ca78
Signed-off-by: chen <chen89.chen@samsung.com>
common/tct-mltrain-tizen-tests/inst.wgt.py

index 7a5f5ec09b0b60be5bcf0ddc641d32150668bf59..b7245c19863a1bb3722fc334490d78ee0a1a6a28 100755 (executable)
@@ -1,15 +1,14 @@
 #!/usr/bin/env python
 
+import configparser
+import glob
 import os
 import shutil
-import glob
-import time
-import sys
-import subprocess
 import string
+import subprocess
+import sys
+import time
 from optparse import OptionParser, make_option
-import configparser
-
 
 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
 PKG_NAME = os.path.basename(SCRIPT_DIR)
@@ -144,7 +143,7 @@ def uninstPKGs():
                     if "Failure" in line:
                         action_status = False
                         break
-    (return_code, output) = doRemoteCMD("rm -rf %s/Documents" % SRC_DIR)
+    (return_code, output) = doRemoteCMD("rm -rf %s/Documents/*" % SRC_DIR)
     if return_code != 0:
         action_status = False