diff --git a/aw/python/distributed/common/devices.py b/aw/python/distributed/common/devices.py index 33ffc0f80d64885455e12f9a547e747c6bf855ec..23b80c7db2c16f2f6c1217575bf84a3b20568d7c 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 7c9742ecc4313d7b236af0590423436d4069c1f7..5cf78286cd6c80da2b4629f76070af3f9bfd26a6 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 ""