From 153e66cb2a3fea2741ef84cabf654b7318ac7e67 Mon Sep 17 00:00:00 2001 From: deveco_xdevice Date: Tue, 12 Nov 2024 16:57:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DL1=E4=B8=8Bmount=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deveco_xdevice --- plugins/ohos/src/ohos/testkit/kit_lite.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/ohos/src/ohos/testkit/kit_lite.py b/plugins/ohos/src/ohos/testkit/kit_lite.py index 4e2079d..e2c8adc 100644 --- a/plugins/ohos/src/ohos/testkit/kit_lite.py +++ b/plugins/ohos/src/ohos/testkit/kit_lite.py @@ -240,11 +240,12 @@ class MountKit(ITestKit): mkdir_on_board(device, target) self.mounted_dir.add(target) + temp_linux_directory = linux_directory if is_remote.lower() == "false": - linux_directory = get_mount_dir(linux_directory) + temp_linux_directory = get_mount_dir(linux_directory) for command in commands: command = command.replace("nfs_ip", linux_host). \ - replace("nfs_directory", linux_directory).replace( + replace("nfs_directory", temp_linux_directory).replace( "device_directory", target).replace("//", "/") timeout = 15 if command.startswith("mount") else 1 if command.startswith("mount"):