Skip to content

Commit 06af8a2

Browse files
committed
Merge pull request mozilla#2424 from yurydelendik/fix-makeref
Replaces rsync to cp in test.py
2 parents 05c2e4d + 61cdbf1 commit 06af8a2

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
@@ -756,10 +756,9 @@ def maybeUpdateRefImages(options, browser):
756756
if options.noPrompts or prompt('Would you like to update the master copy in ref/?'):
757757
sys.stdout.write(' Updating ref/ ... ')
758758

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

764763
print 'done'
765764
else:

0 commit comments

Comments
 (0)