From 61cdbf16a42f4a9bebeb3a8b5ade4727ca6cbc4b Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Fri, 30 Nov 2012 14:25:15 -0600 Subject: [PATCH] Replaces rsync to cp (to support Windows) --- test/test.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test.py b/test/test.py index 4911ec015..f60d9dfad 100644 --- a/test/test.py +++ b/test/test.py @@ -713,10 +713,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: