From 082be0b479d423c5e3ae53b3d2c1efac4b8976a5 Mon Sep 17 00:00:00 2001 From: Nguyen Van Tan Date: Fri, 9 Nov 2018 17:36:43 +0700 Subject: [PATCH] [release] change tct-config-device.py file Change-Id: I43bcddbccc417658ad27a842089fe0d322aa052e --- .../tools/tct-config-device.py | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/release/csharp-tct_5.5_dotnet/csharp-tct_5.5_dotnet/tools/tct-config-device.py b/release/csharp-tct_5.5_dotnet/csharp-tct_5.5_dotnet/tools/tct-config-device.py index 796ecb7..d573c94 100755 --- a/release/csharp-tct_5.5_dotnet/csharp-tct_5.5_dotnet/tools/tct-config-device.py +++ b/release/csharp-tct_5.5_dotnet/csharp-tct_5.5_dotnet/tools/tct-config-device.py @@ -43,7 +43,7 @@ PKGS_DIR = JOIN(CURENT_DIR, "package") DEVID = "" -TIZENV = "tizen_5.0" +TIZENV = "tizen_5.5" DLOG_CLEAR = "dlogutil -c" DLOG_UTIL = "sdb -s %s shell dlogutil -v time" @@ -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') DEVICE_EXECUTION_MODE_30 = tct_parser.get('DEVICE', 'DEVICE_EXECUTION_MODE_30') -if TIZENV.find('tizen_5.0') > -1: +if TIZENV.find('tizen_5.5') > -1: DEVICE_SUITE_TARGET = DEVICE_SUITE_TARGET_30 else: DEVICE_SUITE_TARGET = DEVICE_SUITE_TARGET_24 @@ -127,7 +127,7 @@ def remove_stub(): def uninstall_testconfig(): - if TIZENV.find('tizen_5.0') > -1: + if TIZENV.find('tizen_5.5') > -1: inst_path = RESRC_DIR + os.sep + 'tct-testconfig' + os.sep + 'inst.py' SdbManager.hostCommand("python %s -s %s -u" % (inst_path, DEVID)) else: @@ -142,7 +142,7 @@ def uninstall_testconfig(): def uninstall_behavior(): print "info: Uninstall behavior tool." - if TIZENV.find('tizen_5.0') > -1: + if TIZENV.find('tizen_5.5') > -1: pass else: uninst_cmd = JOIN(DEVICE_SUITE_TARGET, 'tct/opt/tct-behavior-tests/inst.sh') + ' -u' @@ -260,7 +260,7 @@ def check_testconfig(): def install_testconfig(): print "info: Install testconfig." - if TIZENV.find('tizen_5.0') > -1: + if TIZENV.find('tizen_5.5') > -1: instPath = RESRC_DIR + os.sep + 'tct-testconfig' + os.sep + 'inst.py' SdbManager.hostCommand("python %s -s %s" % (instPath, DEVID)) else: @@ -286,8 +286,8 @@ def install_behavior(profile_name): print "#WARNING#: Invalid device profile value %s" % profile_name return False - if TIZENV.find('tizen_5.0') > -1: - RPMPKG = "tct-behavior-tests-5.0.zip" + if TIZENV.find('tizen_5.5') > -1: + RPMPKG = "tct-behavior-tests-5.5.zip" opt_rpm_path = PKGS_DIR + "s" + os.sep + profile_name + os.sep + RPMPKG local_rpm_path = PKGS_DIR + os.sep + profile_name + os.sep + RPMPKG @@ -327,7 +327,7 @@ def install_getCap(): widgetCap = LS(RESRC_DIR, 'getCap', 'wgt') SdbManager.sdbPush(DEVID, JOIN(RESRC_DIR, widgetCap), JOIN(DEVICE_SUITE_TARGET, 'tct/') + widgetCap) - if TIZENV.find('5.0') > -1: + if TIZENV.find('5.5') > -1: SdbManager.sdbShell(DEVID, "su - " + DEVICE_EXECUTION_MODE_30 + \ " -c 'pkgcmd -i -t wgt -q -p " + JOIN(DEVICE_SUITE_TARGET, 'tct/') + widgetCap + '\'') SdbManager.sdbShell(DEVID, 'pkgcmd -i -t wgt -q -p ' + JOIN(DEVICE_SUITE_TARGET, 'tct/') + widgetCap) @@ -338,7 +338,7 @@ def install_ngetCap(): getcap_pkg = LS(RESRC_DIR, 'getCap', 'tpk') SdbManager.sdbPush(DEVID, JOIN(RESRC_DIR, getcap_pkg), JOIN(DEVICE_SUITE_TARGET, 'tct/') + getcap_pkg) - if TIZENV.find('tizen_5.0') > -1: + if TIZENV.find('tizen_5.5') > -1: SdbManager.sdbShell(DEVID, "su - " + DEVICE_EXECUTION_MODE_30 + \ " -c 'pkgcmd -ipt tpk -p " + JOIN(DEVICE_SUITE_TARGET, 'tct/') + getcap_pkg + '\'') else: @@ -349,7 +349,7 @@ def uninstall_getCap(): wgt_id = getCap_appid() if wgt_id: uninst_cmd = "" - if TIZENV.find('tizen_5.0') > -1: + if TIZENV.find('tizen_5.5') > -1: uninst_cmd = "su - " + DEVICE_EXECUTION_MODE_30 + \ " -c 'pkgcmd -qun " + wgt_id.split('.')[0] + '\'' elif TIZENV.find('tizen_2.4') > -1: @@ -369,7 +369,7 @@ def uninstall_ngetCap(): def getCap_appid(): widgetid_cmd = "" - if TIZENV.find('tizen_5.0') > -1: + if TIZENV.find('tizen_5.5') > -1: widgetid_cmd = "su - " + DEVICE_EXECUTION_MODE_30 + \ " -c \"app_launcher -l | grep getCapabilities\"" else: @@ -404,7 +404,7 @@ def launch_getCap(): wgt_id = getCap_appid() if wgt_id: launchResult = None - if TIZENV.find('tizen_5.0') > -1: + if TIZENV.find('tizen_5.5') > -1: launchResult = SdbManager.sdbShell(DEVID, 'su - ' + \ DEVICE_EXECUTION_MODE_30 + ' -c \"app_launcher -s ' + wgt_id + '\"') else: @@ -436,7 +436,7 @@ def launch_getCap(): def launch_ngetCap(): launch_result = None - if TIZENV.find('tizen_5.0') > -1: + if TIZENV.find('tizen_5.5') > -1: launch_result = SdbManager.sdbShell(DEVID, 'su - ' + \ DEVICE_EXECUTION_MODE_30 + ' -c \"launch_app org.example.getcap\"') else: @@ -568,7 +568,7 @@ def runProcess(): kill_process("tinyweb") kill_process("testkit-stub") remove_stub() - if TIZENV.find('5.0') > -1: + if TIZENV.find('5.5') > -1: uninstall_storage() print "Clean the tct packages in device successfully." @@ -598,14 +598,14 @@ def runProcess(): check_ngetCap() else: check_getCap() - if TIZENV.find('5.0') > -1: + if TIZENV.find('5.5') > -1: check_storage() print "Check finished." elif options.bhtest: check_resource_dir() - if TIZENV.find('5.0') > -1: + if TIZENV.find('5.5') > -1: uninstall_storage() install_storage() launch_storage() @@ -640,7 +640,7 @@ def runProcess(): uninstall_testconfig() uninstall_getCap() uninstall_ngetCap() - if TIZENV.find('5.0') > -1: + if TIZENV.find('5.5') > -1: uninstall_storage() print "Clean the tct packages in device successfully." @@ -677,7 +677,7 @@ def runProcess(): install_getCap() launch_getCap() - if TIZENV.find('5.0') > -1: + if TIZENV.find('5.5') > -1: install_storage() launch_storage() -- 2.7.4