capture retval from copy threads

This commit is contained in:
Ryo Nakamura
2022-11-01 00:17:05 +09:00
parent 07b9d8ca55
commit 7039b84c4f
2 changed files with 19 additions and 4 deletions

View File

@@ -149,3 +149,14 @@ def test_min_chunk(mscp, src_prefix, dst_prefix):
src.cleanup()
dst.cleanup()
@pytest.mark.parametrize("src_prefix, dst_prefix", param_remote_prefix)
def test_cannot_override_file_with_dir(mscp, src_prefix, dst_prefix):
src = File("src", size = 128).make()
dst = File("dst").make()
run2ng([mscp, src_prefix + src.path, dst_prefix + "dst/src"])
src.cleanup()
dst.cleanup()