continue
for file in files:
- if file.endswith(".wgt"):
+ if file.endswith(".wgt") or file.endswith(".tpk"):
pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
if not pkg_id:
action_status = False
continue
(return_code, output) = doRemoteCMD(
- "pkgcmd %s -u -t wgt -q -n %s" % (GLOVAL_OPT, pkg_id))
+ "pkgcmd %s -q -u -n %s" % (GLOVAL_OPT, pkg_id))
for line in output:
if "Failure" in line:
action_status = False
(return_code, output) = doRemoteCMD(
"rm -rf %s" % PKG_SRC_DIR)
+ #(return_code, output) = doRemoteCMD(
+ # "rm /home/owner/share/org.tizen.tbt_hcetestappa-1.0.0-arm.tpk")
+ # (return_code, output) = doRemoteCMD(
+ # "rm /home/owner/share/nfcTest.wgt")
if return_code != 0:
action_status = False
if "Failure" in line:
action_status = False
break
+ for file in files:
+ if file.endswith(".tpk"):
+ if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
+ action_status = False
+ (return_code, output) = doRemoteCMD(
+ "pkgcmd %s -i -t tpk -q -p %s/%s" % (GLOVAL_OPT, SRC_DIR, file))
+ doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
+ for line in output:
+ if "Failure" in line:
+ 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
- '''
-
+ #if not doRemoteCopy(os.path.join(SCRIPT_DIR, "nfcTest"), "/home/owner/share"):
+ # action_status = False
+ #(return_code, output) = doRemoteCMD(
+ # "su - %s -c '%s;app_launcher -s cM2gZdtzOg.nfcTest'" % (PARAMETERS.user, XW_ENV))
return action_status
"copylist": {
"inst.wgt.py": "inst.py",
"tests.full.xml": "tests.full.xml",
- "tests.xml": "tests.xml"
+ "tests.xml": "tests.xml",
+ "nfcTest/nfcTest.wgt" : "nfcTest.wgt",
+ "nfcTest/org.tizen.tbt_hcetestappa.tpk" : "org.tizen.tbt_hcetestappa.tpk"
},
"pkg-app": {\r
"sign-flag": "true"\r