[release] change tct-config-device.py file 02/192802/1
authorNguyen Van Tan <nguyen.vtan@samsung.com>
Fri, 9 Nov 2018 10:36:43 +0000 (17:36 +0700)
committerNguyen Van Tan <nguyen.vtan@samsung.com>
Fri, 9 Nov 2018 10:36:43 +0000 (17:36 +0700)
Change-Id: I43bcddbccc417658ad27a842089fe0d322aa052e

release/csharp-tct_5.5_dotnet/csharp-tct_5.5_dotnet/tools/tct-config-device.py

index 796ecb7..d573c94 100755 (executable)
@@ -43,7 +43,7 @@ PKGS_DIR = JOIN(CURENT_DIR, "package")
 \r
 DEVID = ""\r
 \r
-TIZENV = "tizen_5.0"\r
+TIZENV = "tizen_5.5"\r
 \r
 DLOG_CLEAR = "dlogutil -c"\r
 DLOG_UTIL = "sdb -s %s shell dlogutil -v time"\r
@@ -56,7 +56,7 @@ DEVICE_SUITE_TARGET_24 = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_24')
 DEVICE_SUITE_TARGET_30 = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')\r
 DEVICE_EXECUTION_MODE_30 = tct_parser.get('DEVICE', 'DEVICE_EXECUTION_MODE_30')\r
 \r
-if TIZENV.find('tizen_5.0') > -1:\r
+if TIZENV.find('tizen_5.5') > -1:\r
     DEVICE_SUITE_TARGET = DEVICE_SUITE_TARGET_30\r
 else:\r
     DEVICE_SUITE_TARGET = DEVICE_SUITE_TARGET_24\r
@@ -127,7 +127,7 @@ def remove_stub():
 \r
 \r
 def uninstall_testconfig():\r
-    if TIZENV.find('tizen_5.0') > -1:\r
+    if TIZENV.find('tizen_5.5') > -1:\r
         inst_path = RESRC_DIR + os.sep + 'tct-testconfig' + os.sep + 'inst.py'\r
         SdbManager.hostCommand("python %s -s %s -u" % (inst_path, DEVID))\r
     else:\r
@@ -142,7 +142,7 @@ def uninstall_testconfig():
 \r
 def uninstall_behavior():\r
     print "info: Uninstall behavior tool."\r
-    if TIZENV.find('tizen_5.0') > -1:\r
+    if TIZENV.find('tizen_5.5') > -1:\r
         pass\r
     else:\r
         uninst_cmd = JOIN(DEVICE_SUITE_TARGET, 'tct/opt/tct-behavior-tests/inst.sh') + ' -u'\r
@@ -260,7 +260,7 @@ def check_testconfig():
 \r
 def install_testconfig():\r
     print "info: Install testconfig."\r
-    if TIZENV.find('tizen_5.0') > -1:\r
+    if TIZENV.find('tizen_5.5') > -1:\r
         instPath = RESRC_DIR + os.sep + 'tct-testconfig' + os.sep + 'inst.py'\r
         SdbManager.hostCommand("python %s -s %s" % (instPath, DEVID))\r
     else:\r
@@ -286,8 +286,8 @@ def install_behavior(profile_name):
         print "#WARNING#: Invalid device profile value %s" % profile_name\r
         return False\r
 \r
-    if TIZENV.find('tizen_5.0') > -1:\r
-        RPMPKG = "tct-behavior-tests-5.0.zip"\r
+    if TIZENV.find('tizen_5.5') > -1:\r
+        RPMPKG = "tct-behavior-tests-5.5.zip"\r
         opt_rpm_path = PKGS_DIR + "s" + os.sep + profile_name + os.sep + RPMPKG\r
         local_rpm_path = PKGS_DIR + os.sep + profile_name + os.sep + RPMPKG\r
 \r
@@ -327,7 +327,7 @@ def install_getCap():
     widgetCap = LS(RESRC_DIR, 'getCap', 'wgt')\r
     SdbManager.sdbPush(DEVID, JOIN(RESRC_DIR, widgetCap), JOIN(DEVICE_SUITE_TARGET, 'tct/') + widgetCap)\r
 \r
-    if TIZENV.find('5.0') > -1:\r
+    if TIZENV.find('5.5') > -1:\r
         SdbManager.sdbShell(DEVID, "su - " + DEVICE_EXECUTION_MODE_30 + \\r
                 " -c 'pkgcmd -i -t wgt -q -p " + JOIN(DEVICE_SUITE_TARGET, 'tct/') + widgetCap + '\'')\r
         SdbManager.sdbShell(DEVID, 'pkgcmd -i -t wgt -q -p ' + JOIN(DEVICE_SUITE_TARGET, 'tct/') + widgetCap)\r
@@ -338,7 +338,7 @@ def install_ngetCap():
     getcap_pkg = LS(RESRC_DIR, 'getCap', 'tpk')\r
     SdbManager.sdbPush(DEVID, JOIN(RESRC_DIR, getcap_pkg), JOIN(DEVICE_SUITE_TARGET, 'tct/') + getcap_pkg)\r
 \r
-    if TIZENV.find('tizen_5.0') > -1:\r
+    if TIZENV.find('tizen_5.5') > -1:\r
         SdbManager.sdbShell(DEVID, "su - " + DEVICE_EXECUTION_MODE_30 + \\r
                 " -c 'pkgcmd -ipt tpk -p " + JOIN(DEVICE_SUITE_TARGET, 'tct/') + getcap_pkg + '\'')\r
     else:\r
@@ -349,7 +349,7 @@ def uninstall_getCap():
     wgt_id = getCap_appid()\r
     if wgt_id:\r
         uninst_cmd = ""\r
-        if TIZENV.find('tizen_5.0') > -1:\r
+        if TIZENV.find('tizen_5.5') > -1:\r
             uninst_cmd = "su - " + DEVICE_EXECUTION_MODE_30 + \\r
                     " -c 'pkgcmd -qun " + wgt_id.split('.')[0] + '\''\r
         elif TIZENV.find('tizen_2.4') > -1:\r
@@ -369,7 +369,7 @@ def uninstall_ngetCap():
 \r
 def getCap_appid():\r
     widgetid_cmd = ""\r
-    if TIZENV.find('tizen_5.0') > -1:\r
+    if TIZENV.find('tizen_5.5') > -1:\r
         widgetid_cmd = "su - " + DEVICE_EXECUTION_MODE_30 + \\r
                 " -c \"app_launcher -l | grep getCapabilities\""\r
     else:\r
@@ -404,7 +404,7 @@ def launch_getCap():
     wgt_id = getCap_appid()\r
     if wgt_id:\r
         launchResult = None\r
-        if TIZENV.find('tizen_5.0') > -1:\r
+        if TIZENV.find('tizen_5.5') > -1:\r
             launchResult = SdbManager.sdbShell(DEVID, 'su - ' + \\r
                     DEVICE_EXECUTION_MODE_30 + ' -c \"app_launcher -s ' + wgt_id + '\"')\r
         else:\r
@@ -436,7 +436,7 @@ def launch_getCap():
 \r
 def launch_ngetCap():\r
     launch_result = None\r
-    if TIZENV.find('tizen_5.0') > -1:\r
+    if TIZENV.find('tizen_5.5') > -1:\r
         launch_result = SdbManager.sdbShell(DEVID, 'su - ' + \\r
                 DEVICE_EXECUTION_MODE_30 + ' -c \"launch_app org.example.getcap\"')\r
     else:\r
@@ -568,7 +568,7 @@ def runProcess():
         kill_process("tinyweb")\r
         kill_process("testkit-stub")\r
         remove_stub()\r
-        if TIZENV.find('5.0') > -1:\r
+        if TIZENV.find('5.5') > -1:\r
             uninstall_storage()\r
         print "Clean the tct packages in device successfully."\r
 \r
@@ -598,14 +598,14 @@ def runProcess():
                 check_ngetCap()\r
             else:\r
                 check_getCap()\r
-            if TIZENV.find('5.0') > -1:\r
+            if TIZENV.find('5.5') > -1:\r
                 check_storage()\r
 \r
         print "Check finished."\r
 \r
     elif options.bhtest:\r
         check_resource_dir()\r
-        if TIZENV.find('5.0') > -1:\r
+        if TIZENV.find('5.5') > -1:\r
             uninstall_storage()\r
             install_storage()\r
             launch_storage()\r
@@ -640,7 +640,7 @@ def runProcess():
             uninstall_testconfig()\r
             uninstall_getCap()\r
             uninstall_ngetCap()\r
-            if TIZENV.find('5.0') > -1:\r
+            if TIZENV.find('5.5') > -1:\r
                 uninstall_storage()\r
 \r
         print "Clean the tct packages in device successfully."\r
@@ -677,7 +677,7 @@ def runProcess():
                 install_getCap()\r
                 launch_getCap()\r
 \r
-            if TIZENV.find('5.0') > -1:\r
+            if TIZENV.find('5.5') > -1:\r
                 install_storage()\r
                 launch_storage()\r
 \r