Merge pull request #2424 from yurydelendik/fix-makeref

Replaces rsync to cp in test.py
This commit is contained in:
Brendan Dahl 2013-01-31 07:58:48 -08:00
commit 06af8a27e4

View File

@ -756,10 +756,9 @@ def maybeUpdateRefImages(options, browser):
if options.noPrompts or prompt('Would you like to update the master copy in ref/?'):
sys.stdout.write(' Updating ref/ ... ')
# XXX unclear what to do on errors here ...
# NB: do *NOT* pass --delete to rsync. That breaks this
# entire scheme.
subprocess.check_call(( 'rsync', '-arvq', 'tmp/', 'ref/' ))
if not os.path.exists('ref'):
subprocess.check_call('mkdir ref', shell = True)
subprocess.check_call('cp -Rf tmp/* ref/', shell = True)
print 'done'
else: