From 75760e121e6e8506beeb9257a8fa3dc54fb906c4 Mon Sep 17 00:00:00 2001 From: deveco_test Date: Tue, 30 Aug 2022 15:24:27 +0800 Subject: [PATCH] fixed 229a8ec from https://gitee.com/kuanjay/test_xdevice/pulls/157 fix PushKit bug Signed-off-by: deveco_test --- plugins/ohos/src/ohos/testkit/kit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ohos/src/ohos/testkit/kit.py b/plugins/ohos/src/ohos/testkit/kit.py index e0e22a0..8e11f76 100644 --- a/plugins/ohos/src/ohos/testkit/kit.py +++ b/plugins/ohos/src/ohos/testkit/kit.py @@ -257,7 +257,7 @@ class PushKit(ITestKit): self.pushed_file.append(os.path.join(dst, file)) else: if device.is_directory(dst): - dst = os.path.join(dst, os.path.basename(real_src_path)) + dst = os.path.normpath(os.path.join(dst, os.path.basename(real_src_path))) device.push_file("{}".format(real_src_path), "{}".format(dst)) LOG.debug("Push file finished from {} to {}".format(src, dst)) -- GitLab