Skip to content

Commit 61cdbf1

Browse files
committed
Replaces rsync to cp (to support Windows)
1 parent 223ad0c commit 61cdbf1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -713,10 +713,9 @@ def maybeUpdateRefImages(options, browser):
713713
if options.noPrompts or prompt('Would you like to update the master copy in ref/?'):
714714
sys.stdout.write(' Updating ref/ ... ')
715715

716-
# XXX unclear what to do on errors here ...
717-
# NB: do *NOT* pass --delete to rsync. That breaks this
718-
# entire scheme.
719-
subprocess.check_call(( 'rsync', '-arvq', 'tmp/', 'ref/' ))
716+
if not os.path.exists('ref'):
717+
subprocess.check_call('mkdir ref', shell = True)
718+
subprocess.check_call('cp -Rf tmp/* ref/', shell = True)
720719

721720
print 'done'
722721
else:

0 commit comments

Comments
 (0)