Skip to content

Commit

Permalink
Update rsync test mock.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins committed Dec 12, 2018
1 parent 791b827 commit 2325382
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/machines/mirrored_directory_test.py
Expand Up @@ -41,7 +41,7 @@ class LocalMirroredDirectory(mirrored_directory.MirroredDirectory):

@staticmethod
def Rsync(src: str, dst: str, host_port: int, excludes: typing.List[str],
dry_run: bool, verbose: bool, delete: bool):
dry_run: bool, verbose: bool, delete: bool, progress: bool):
"""Private helper method to invoke rsync with appropriate arguments."""
del host_port
src = str(src).replace('localhost:', '')
Expand All @@ -54,6 +54,8 @@ def Rsync(src: str, dst: str, host_port: int, excludes: typing.List[str],
cmd.append('--verbose')
if delete:
cmd.append('--delete')
if progress:
cmd.append('--progress')
logging.info(' '.join(cmd))
p = subprocess.Popen(cmd)
p.communicate()
Expand Down

0 comments on commit 2325382

Please sign in to comment.