mirror of
https://github.com/upa/mscp.git
synced 2026-05-21 04:47:29 +08:00
fix test_e2e for ccalgo and tiny fix on test_dir_copy_single
This commit is contained in:
@@ -144,7 +144,7 @@ param_dir_copy_single = [
|
|||||||
def test_dir_copy_single(mscp, src_prefix, dst_prefix, src_dir, dst_dir, src, dst):
|
def test_dir_copy_single(mscp, src_prefix, dst_prefix, src_dir, dst_dir, src, dst):
|
||||||
src.make()
|
src.make()
|
||||||
os.mkdir(dst_dir)
|
os.mkdir(dst_dir)
|
||||||
run2ok(["mscp", "-H", "-vvv", src_prefix + src_dir, dst_prefix + dst_dir])
|
run2ok([mscp, "-H", "-vvv", src_prefix + src_dir, dst_prefix + dst_dir])
|
||||||
assert check_same_md5sum(src, dst)
|
assert check_same_md5sum(src, dst)
|
||||||
src.cleanup()
|
src.cleanup()
|
||||||
dst.cleanup()
|
dst.cleanup()
|
||||||
@@ -279,7 +279,7 @@ def test_ccalgo(mscp, src_prefix, dst_prefix):
|
|||||||
run = run2ng
|
run = run2ng
|
||||||
elif platform.system() == "Linux":
|
elif platform.system() == "Linux":
|
||||||
# Linux supports TCP_CONGESTION
|
# Linux supports TCP_CONGESTION
|
||||||
with open("/proc/sys/net/ipv4/tcp_allowed_congestion_control", r) as f:
|
with open("/proc/sys/net/ipv4/tcp_allowed_congestion_control", "r") as f:
|
||||||
algo = f.read().strip().split().pop()
|
algo = f.read().strip().split().pop()
|
||||||
run = run2ok
|
run = run2ok
|
||||||
run([mscp, "-H", "-vvv", "-g", algo, src_prefix + src.path, dst_prefix + "dst"])
|
run([mscp, "-H", "-vvv", "-g", algo, src_prefix + src.path, dst_prefix + "dst"])
|
||||||
|
|||||||
Reference in New Issue
Block a user