From 2d51ee8fcd0e02f3d51044b36f167f34486f0942 Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Thu, 3 Nov 2011 19:01:10 -0400 Subject: [PATCH] Fixing ref/ update --- test/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.py b/test/test.py index 66e1acd31..e3aefcfb5 100644 --- a/test/test.py +++ b/test/test.py @@ -506,9 +506,7 @@ def maybeUpdateRefImages(options, browser): print ' Yes! The references in tmp/ can be synced with ref/.' if options.reftest: startReftest(browser, options) - if options.noPrompts or not prompt('Would you like to update the master copy in ref/?'): - print ' OK, not updating.' - else: + 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 ... @@ -517,6 +515,8 @@ def maybeUpdateRefImages(options, browser): subprocess.check_call(( 'rsync', '-arv', 'tmp/', 'ref/' )) print 'done' + else: + print ' OK, not updating.' def startReftest(browser, options): url = "http://%s:%s" % (SERVER_HOST, options.port)