test: add text=True to rsync subprocess.run
Without text=True, stderr is bytes, and bytes.split('\n') throws
TypeError: a bytes-like object is required, not 'str'.
This commit is contained in:
@@ -322,7 +322,7 @@ path = {source_dir}
|
|||||||
|
|
||||||
start_time = time.monotonic()
|
start_time = time.monotonic()
|
||||||
rsync_result = subprocess.run(
|
rsync_result = subprocess.run(
|
||||||
rsync_cmd, capture_output=True, timeout=120
|
rsync_cmd, capture_output=True, text=True, timeout=120
|
||||||
)
|
)
|
||||||
end_time = time.monotonic()
|
end_time = time.monotonic()
|
||||||
duration = end_time - start_time
|
duration = end_time - start_time
|
||||||
|
|||||||
Reference in New Issue
Block a user