[common][workers][DPTTIZEN-3133, fix 1 tc issue for M69 upgrade] 43/210443/2
authorzhongyuan <zy123.yuan@samsung.com>
Fri, 19 Jul 2019 06:36:26 +0000 (14:36 +0800)
committerzhongyuan yuan <zy123.yuan@samsung.com>
Mon, 22 Jul 2019 01:52:05 +0000 (01:52 +0000)
Change-Id: I8bcda154f4a78bf6cc6543841f4944cd8889805b

common/tct-workers-w3c-tests/inst.wgt.py
common/tct-workers-w3c-tests/suite.json

index 44e57cf176811a997dd4abf590ad6d6c821d1835..225affe5a3ff4e0d27bbc3695f245a9a795c7df7 100755 (executable)
@@ -7,7 +7,7 @@ import time
 import sys
 import subprocess
 import string
-from optparse import OptionParser, make_option\r
+from optparse import OptionParser, make_option
 import ConfigParser
 
 
@@ -161,16 +161,16 @@ def instPKGs():
                         action_status = False
                         break
 
-    # Do some special copy/delete... steps
-    '''
-    (return_code, output) = doRemoteCMD(
-        "mkdir -p %s/tests" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-
-    if not doRemoteCopy("specname/tests", "%s/tests" % PKG_SRC_DIR):
-        action_status = False
-    '''
+    for item in glob.glob("%s/*" % SCRIPT_DIR):
+        if item.endswith(".wgt"):
+            continue
+        elif item.endswith("inst.py"):
+            continue
+        else:
+            item_name = os.path.basename(item)
+            if not doRemoteCopy(item, "%s/%s" % (PKG_SRC_DIR, item_name)):
+            #if not doRemoteCopy(item, PKG_SRC_DIR):
+                action_status = False
 
     return action_status
 
index cd5f0b2ebbb10c9dd181adda182072aa0ed9db46..080397e91b924bcb2ddfe77ff20d0ecaa1d560d3 100755 (executable)
                 "tests.full.xml": "tests.full.xml",
                 "tests.xml": "tests.xml"
             },
-            "pkg-app": {\r
-                "sign-flag": "true"\r
+            "pkg-app": {
+                "sign-flag": "true",
+                "hosted-app": "true"
             }
         },
         "apk-aio, cordova-aio": {
             "blacklist": []
         },
         "wgt": {
-            "blacklist": [
-                "*"
-            ],
+            "blacklist": [],
             "copylist": {
                 "inst.wgt.py": "inst.py",
                 "tests.full.xml": "tests.full.xml",
                 "tests.xml": "tests.xml"
             },
-            "pkg-app": {\r
-                "sign-flag": "true"\r
+            "pkg-app": {
+                "blacklist": [],
+                "sign-flag": "true",
+                "hosted-app": "true"
             }
         },
         "xpk": {
@@ -51,7 +52,8 @@
             },
             "pkg-app": {
                 "blacklist": [],
-                "sign-flag": "true"
+                "sign-flag": "true",
+                "hosted-app": "true"
             }
         }
     },