From 048d8ae332e34c132c37c435a99a9852279c3713 Mon Sep 17 00:00:00 2001 From: yuyan0428 Date: Fri, 19 Aug 2022 00:36:55 +0000 Subject: [PATCH] fixed 2d4d35e from https://gitee.com/yuyan0428/test_developertest/pulls/171 Signed-off-by: yuyan0428 Signed-off-by: yuyan0428 --- aw/python/distributed/common/devices.py | 2 +- aw/python/distributed/distribute/distribute.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aw/python/distributed/common/devices.py b/aw/python/distributed/common/devices.py index 33ffc0f..23b80c7 100755 --- a/aw/python/distributed/common/devices.py +++ b/aw/python/distributed/common/devices.py @@ -87,7 +87,7 @@ class DeviceShell: self.conn_type = conn_type self.device_sn = device_sn self.name = name - self.test_path = "/data/test" + self.test_path = "data/test" if conn_type: self.device_params = self.get_device_hdc_para( device_sn diff --git a/aw/python/distributed/distribute/distribute.py b/aw/python/distributed/distribute/distribute.py index 7c9742e..5cf7828 100755 --- a/aw/python/distributed/distribute/distribute.py +++ b/aw/python/distributed/distribute/distribute.py @@ -288,10 +288,10 @@ class Distribute: softbus_file_path = "out/rk3568/communication/dsoftbus_standard/SoftBusdumpdeviceInfo" file_path = os.path.normpath(os.path.join("../../", sys.framework_root_dir, softbus_file_path)) - device.push_file(file_path, "/data/test") - device.shell_with_output("chmod 777 -R /data/test/") + device.push_file(file_path, "data/test") + device.shell_with_output("chmod 777 -R data/test/") chmod_device_file_path = "SoftBusdumpdeviceInfo" - device_info = device.shell_with_output("/data/test/%s" % chmod_device_file_path) + device_info = device.shell_with_output("data/test/%s" % chmod_device_file_path) if device_info == "": return "" -- Gitee