diff --git a/aw/python/distributed/common/devices.py b/aw/python/distributed/common/devices.py index 23b80c7db2c16f2f6c1217575bf84a3b20568d7c..057d9c9b4165f0abd6d2b96cdc3ba85adf3779ac 100755 --- a/aw/python/distributed/common/devices.py +++ b/aw/python/distributed/common/devices.py @@ -33,7 +33,7 @@ if platform.system() != 'Windows': else: QUOTATION_MARKS = "\"" -HDC_TOOLS = "hdc_std" +HDC_TOOLS = "hdc" ############################################################################## diff --git a/aw/python/distributed/common/drivers.py b/aw/python/distributed/common/drivers.py index 0649a62363c9cd1b81316bc3707575795b6e6bda..c09ae3723e39e36f2150fd38571a91f16b749b93 100755 --- a/aw/python/distributed/common/drivers.py +++ b/aw/python/distributed/common/drivers.py @@ -65,7 +65,7 @@ def is_exist_target_in_device(device, path, target): def receive_coverage_data(device, result_path, suite_file, file_name): - file_dir = suite_file.split("distributedtest\\")[1].split("\\")[0] + file_dir = suite_file.split("distributedtest")[1].strip(os.sep).split(os.sep)[0] target_name = "obj" cxx_cov_path = os.path.abspath(os.path.join( result_path, @@ -116,7 +116,7 @@ class CppTestDriver(ITestDriver): def execute(self, suite_file, result_path, options, background=False): case_dir, file_name = os.path.split(suite_file) - dst_dir = case_dir.split("distributedtest\\")[1] + dst_dir = case_dir.split("distributedtest")[1].strip(os.sep) os.makedirs(os.path.join(result_path, "temp", dst_dir), exist_ok=True) long_command_path = tempfile.mkdtemp( diff --git a/aw/python/distributed/distribute/distribute.py b/aw/python/distributed/distribute/distribute.py index 889c1126df4c53a0e47da5c40cdd465632efc1a1..06be09519030cdb5157f06d0a1d9b8086ce78204 100755 --- a/aw/python/distributed/distribute/distribute.py +++ b/aw/python/distributed/distribute/distribute.py @@ -276,7 +276,7 @@ class Distribute: @staticmethod def _query_device_major_uuid(device): device_sn = device.device_sn - command = "hdc_std -t %s shell hidumper -s 4700 -a 'buscenter -l local_device_info'" % device_sn + command = "hdc -t %s shell hidumper -s 4700 -a 'buscenter -l local_device_info'" % device_sn device_info = device.execute_command_with_output(command) if device_info == "": @@ -288,7 +288,7 @@ class Distribute: @staticmethod def _query_device_agent_uuid(device): device_sn = device.device_sn - command = "hdc_std -t %s shell hidumper -s 4700 -a 'buscenter -l remote_device_info'" % device_sn + command = "hdc -t %s shell hidumper -s 4700 -a 'buscenter -l remote_device_info'" % device_sn device_info = device.execute_command_with_output(command) if device_info == "": diff --git a/src/core/command/distribute_execute.py b/src/core/command/distribute_execute.py index c7c83c3cdca5e6a3cb9c789b1a62c4d68e49752c..26e567aaba07f3a4748e5fced43b4d422ecdcb00 100644 --- a/src/core/command/distribute_execute.py +++ b/src/core/command/distribute_execute.py @@ -52,7 +52,7 @@ class DbinderTest(unittest.TestCase): distribute.exec_major(self.major, major_target_name, self.result_path, options) result = os.path.join(self.result_path, 'result', - self.suits_dir.split("distributedtest\\")[1]) + self.suits_dir.split("distributedtest")[1].strip(os.sep)) source_path = "%s/%s.xml" % (self.major.test_path, major_target_name) if not os.path.exists(result): os.makedirs(result)