From: chen Date: Tue, 12 Dec 2023 03:47:42 +0000 (+0800) Subject: [iot][deprecatedapi][fix add addDraftMessage error callback] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18b3c1dc09df9bc78833b741b613fd08d7f41728;p=test%2Ftct%2Fweb%2Fapi.git [iot][deprecatedapi][fix add addDraftMessage error callback] Change-Id: I8e0bfd9172f7bd2aea43cce1bd3ba73efd46041a Signed-off-by: chen --- diff --git a/iot/tct-deprecatedapi-tizen-tests/inst.wgt.py b/iot/tct-deprecatedapi-tizen-tests/inst.wgt.py index 8e0d9ef1a..b69e1584e 100755 --- a/iot/tct-deprecatedapi-tizen-tests/inst.wgt.py +++ b/iot/tct-deprecatedapi-tizen-tests/inst.wgt.py @@ -168,6 +168,12 @@ def instPKGs(): if not doRemoteCopy(item, "%s/%s" % (PKG_SRC_DIR, item_name)): #if not doRemoteCopy(item, PKG_SRC_DIR): action_status = False + for item in os.listdir(SCRIPT_DIR): + print(SCRIPT_DIR) + print(item) + if item.find("webapi-tizen-messaging-test_") != -1: + if not doRemoteCopy("%s/%s" % (SCRIPT_DIR, item), "%s/%s/%s" % (SRC_DIR, PKG_NAME, item)): + action_status = False return action_status diff --git a/iot/tct-deprecatedapi-tizen-tests/suite.json b/iot/tct-deprecatedapi-tizen-tests/suite.json index 07bc35917..b97e0f7dd 100755 --- a/iot/tct-deprecatedapi-tizen-tests/suite.json +++ b/iot/tct-deprecatedapi-tizen-tests/suite.json @@ -1,43 +1,45 @@ -{ - "pkg-blacklist": [ - "config.xml", - "pack.py", - "testcase.xsl", - "testresult.xsl", - "tests.css", - "icon.png", - "manifest.json", - "suite.json", - "inst.*" - ], - "pkg-list": { - "wgt": { - "blacklist": [ - "*" - ], - "copylist": { - "inst.wgt.py": "inst.py", - "shellmanager.py": "shellmanager.py", - "Queue.py": "Queue.py", - "askpolicy.sh": "askpolicy.sh", - "tests.xml": "tests.xml", - "media": "media", - "MediaControllerHelper.wgt": "MediaControllerHelper.wgt" - }, - "pkg-app": { - "sign-flag": "true" - }, - "subapp-list": { - "tct-bt-helper": { - "app-name": "tct-bt-helper", - "blacklist": [ - "manifest.json" - ], - "install-path": "apps", - "sign-flag": "true" - } - } - } - }, - "pkg-name": "tct-deprecatedapi-tizen-tests" -} +{ + "pkg-blacklist": [ + "config.xml", + "pack.py", + "testcase.xsl", + "testresult.xsl", + "tests.css", + "icon.png", + "manifest.json", + "suite.json", + "inst.*" + ], + "pkg-list": { + "wgt": { + "blacklist": [ + "*" + ], + "copylist": { + "inst.wgt.py": "inst.py", + "shellmanager.py": "shellmanager.py", + "Queue.py": "Queue.py", + "askpolicy.sh": "askpolicy.sh", + "tests.xml": "tests.xml", + "media": "media", + "MediaControllerHelper.wgt": "MediaControllerHelper.wgt", + "webapi-tizen-messaging-test_image.jpg": "webapi-tizen-messaging-test_image.jpg", + "webapi-tizen-messaging-test_noise.mp3": "webapi-tizen-messaging-test_noise.mp3" + }, + "pkg-app": { + "sign-flag": "true" + }, + "subapp-list": { + "tct-bt-helper": { + "app-name": "tct-bt-helper", + "blacklist": [ + "manifest.json" + ], + "install-path": "apps", + "sign-flag": "true" + } + } + } + }, + "pkg-name": "tct-deprecatedapi-tizen-tests" +} diff --git a/mobile/tct-deprecatedapi-tizen-tests/inst.wgt.py b/mobile/tct-deprecatedapi-tizen-tests/inst.wgt.py index 8e0d9ef1a..ade5c7ec3 100755 --- a/mobile/tct-deprecatedapi-tizen-tests/inst.wgt.py +++ b/mobile/tct-deprecatedapi-tizen-tests/inst.wgt.py @@ -168,6 +168,10 @@ def instPKGs(): if not doRemoteCopy(item, "%s/%s" % (PKG_SRC_DIR, item_name)): #if not doRemoteCopy(item, PKG_SRC_DIR): action_status = False + for item in os.listdir(SCRIPT_DIR): + if item.find("webapi-tizen-messaging-test_") != -1: + if not doRemoteCopy("%s/%s" % (SCRIPT_DIR, item), "%s/%s/%s" % (SRC_DIR, PKG_NAME, item)): + action_status = False return action_status diff --git a/mobile/tct-deprecatedapi-tizen-tests/suite.json b/mobile/tct-deprecatedapi-tizen-tests/suite.json index 07bc35917..b97e0f7dd 100755 --- a/mobile/tct-deprecatedapi-tizen-tests/suite.json +++ b/mobile/tct-deprecatedapi-tizen-tests/suite.json @@ -1,43 +1,45 @@ -{ - "pkg-blacklist": [ - "config.xml", - "pack.py", - "testcase.xsl", - "testresult.xsl", - "tests.css", - "icon.png", - "manifest.json", - "suite.json", - "inst.*" - ], - "pkg-list": { - "wgt": { - "blacklist": [ - "*" - ], - "copylist": { - "inst.wgt.py": "inst.py", - "shellmanager.py": "shellmanager.py", - "Queue.py": "Queue.py", - "askpolicy.sh": "askpolicy.sh", - "tests.xml": "tests.xml", - "media": "media", - "MediaControllerHelper.wgt": "MediaControllerHelper.wgt" - }, - "pkg-app": { - "sign-flag": "true" - }, - "subapp-list": { - "tct-bt-helper": { - "app-name": "tct-bt-helper", - "blacklist": [ - "manifest.json" - ], - "install-path": "apps", - "sign-flag": "true" - } - } - } - }, - "pkg-name": "tct-deprecatedapi-tizen-tests" -} +{ + "pkg-blacklist": [ + "config.xml", + "pack.py", + "testcase.xsl", + "testresult.xsl", + "tests.css", + "icon.png", + "manifest.json", + "suite.json", + "inst.*" + ], + "pkg-list": { + "wgt": { + "blacklist": [ + "*" + ], + "copylist": { + "inst.wgt.py": "inst.py", + "shellmanager.py": "shellmanager.py", + "Queue.py": "Queue.py", + "askpolicy.sh": "askpolicy.sh", + "tests.xml": "tests.xml", + "media": "media", + "MediaControllerHelper.wgt": "MediaControllerHelper.wgt", + "webapi-tizen-messaging-test_image.jpg": "webapi-tizen-messaging-test_image.jpg", + "webapi-tizen-messaging-test_noise.mp3": "webapi-tizen-messaging-test_noise.mp3" + }, + "pkg-app": { + "sign-flag": "true" + }, + "subapp-list": { + "tct-bt-helper": { + "app-name": "tct-bt-helper", + "blacklist": [ + "manifest.json" + ], + "install-path": "apps", + "sign-flag": "true" + } + } + } + }, + "pkg-name": "tct-deprecatedapi-tizen-tests" +}