From dca024182489d3b517b8dc917fc84dcead825c01 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Fri, 18 Nov 2022 22:30:34 +0900 Subject: add O_TRUNC when the first open() for a file --- test/test_e2e.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/test_e2e.py') diff --git a/test/test_e2e.py b/test/test_e2e.py index 61a3532..515717f 100644 --- a/test/test_e2e.py +++ b/test/test_e2e.py @@ -174,3 +174,11 @@ def test_transfer_zero_bytes(mscp, src_prefix, dst_prefix): src.cleanup() dst.cleanup() +@pytest.mark.parametrize("src_prefix, dst_prefix", param_remote_prefix) +def test_override_dst_having_larger_size(mscp, src_prefix, dst_prefix): + src = File("src", size = 1024 * 1024).make() + dst = File("dst", size = 1024 * 1024 * 2).make() + run2ok([mscp, "-H", src_prefix + src.path, dst_prefix + "dst"]) + assert check_same_md5sum(src, dst) + src.cleanup() + dst.cleanup() -- cgit v1.2.3