From a449d75837caf922b2e982b55b80885e66fde423 Mon Sep 17 00:00:00 2001 From: mipengwei Date: Tue, 19 Jul 2022 02:45:18 +0000 Subject: [PATCH] Signed-off-by:mipengwei --- aw/python/distributed/common/devices.py | 2 +- aw/python/distributed/common/drivers.py | 2 +- aw/python/distributed/distribute/distribute.py | 6 +++--- 3 files changed, 5 insertions(+), 5 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/common/drivers.py b/aw/python/distributed/common/drivers.py index 66ed296..f29f246 100755 --- a/aw/python/distributed/common/drivers.py +++ b/aw/python/distributed/common/drivers.py @@ -27,7 +27,7 @@ from core.config.resource_manager import ResourceManager ############################################################################## ############################################################################## -DEVICE_TEST_PATH = "/%s/%s/" % ("data", "test") +DEVICE_TEST_PATH = "%s/%s/" % ("data", "test") def get_level_para_string(level_string): diff --git a/aw/python/distributed/distribute/distribute.py b/aw/python/distributed/distribute/distribute.py index 7c9742e..9b29b28 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