if root.endswith("mediasrc"):
continue
-# for file in files:
-# if file.endswith("%s.wgt" % PKG_NAME):
-# if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
-# action_status = False
-# (return_code, output) = doRemoteCMD(
-# "pkgcmd %s -i -t wgt -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
+ for file in files:
+ if file.endswith("%s.wgt" % PKG_NAME):
+ if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
+ action_status = False
+ (return_code, output) = doRemoteCMD(
+ "pkgcmd %s -i -t wgt -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
'''
</specs>
</testcase>
</set>
- <set name="WidgetPackaging_mobile" type="script">
+ <set name="WidgetPackaging_mobile" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
</capabilities>
</specs>
</testcase>
</set>
- <set name="WidgetPackaging_wearable" type="script">
+ <set name="WidgetPackaging_wearable" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
</capabilities>
</specs>
</testcase>
</set>
- <set name="WidgetPackaging_tv" type="script">
+ <set name="WidgetPackaging_tv" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>TV</value></capability>
</capabilities>
</specs>
</testcase>
</set>
- <set name="WidgetPackaging_iot" type="script">
+ <set name="WidgetPackaging_iot" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile">
<value>COMMON</value>
<?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
<test_definition>
<suite category="W3C/HTML5 APIs" name="tct-widget02-w3c-tests">
- <set name="WidgetPackaging" type="script">
+ <set name="WidgetPackaging" type="js">
<testcase component="W3C_HTML5 APIs/Widget/Widget Packaging and XML Configuration" execution_type="auto" id="WAC_PAKCONF_011" priority="P3" purpose="Test widget installation for the path include \ in the opposite direction.">
<description>
<test_script_entry timeout="90">{DEVICE_EXECUTION_MODE_30}_user@{DEVICE_SUITE_TARGET_30}/tct/opt/tct-widget02-w3c-tests/scripts/w3c_widget_launch.sh WAC_PAKCONF_011.wgt</test_script_entry>
</description>
</testcase>
</set>
- <set name="WidgetPackaging_mobile" type="script">
+ <set name="WidgetPackaging_mobile" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
</capabilities>
</description>
</testcase>
</set>
- <set name="WidgetPackaging_wearable" type="script">
+ <set name="WidgetPackaging_wearable" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
</capabilities>
</description>
</testcase>
</set>
- <!--set name="WidgetPackaging_tv" type="script">
+ <!--set name="WidgetPackaging_tv" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>TV</value></capability>
</capabilities>
</description>
</testcase>
</set-->
- <set name="WidgetPackaging_iot" type="script">
+ <set name="WidgetPackaging_iot" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile">
<value>COMMON</value>