修复L1下mount异常的bug

Signed-off-by: deveco_xdevice <liguangjie1@huawei.com>
This commit is contained in:
deveco_xdevice 2024-11-12 16:57:52 +08:00
parent 354136ed7c
commit 153e66cb2a

View File

@ -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"):