diff options
author | Ryo Nakamura <upa@haeena.net> | 2024-01-11 12:53:34 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2024-01-18 12:59:49 +0900 |
commit | 5cbf3ad6480adb6615a9a80b59d4a9d1ade62431 (patch) | |
tree | 7df444fe7e96dbe11041fe4adf40a615fac6bbed /test/test_e2e.py | |
parent | 4b34118a88be403e8028806ba09be41212d289b1 (diff) |
fix wrong dst path for source path under '/'
When a source file path is /FILE, its dest path would be dst/ILE.
This commit fixes this issue (#8).
Diffstat (limited to 'test/test_e2e.py')
-rw-r--r-- | test/test_e2e.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_e2e.py b/test/test_e2e.py index b6ed73d..a73d896 100644 --- a/test/test_e2e.py +++ b/test/test_e2e.py @@ -216,7 +216,7 @@ def test_copy_file_under_root_to_dir(mscp, src_prefix, dst_prefix): dst_prefix + os.path.dirname(dst.path)]) assert check_same_md5sum(src, dst) src.cleanup() - dst.cleanup() + dst.cleanup(preserve_dir = True) @pytest.mark.parametrize("src_prefix, dst_prefix", param_remote_prefix) |