]> git.parisson.com Git - pdf.js.git/commitdiff
Fixing ref/ update
authorArtur Adib <arturadib@gmail.com>
Thu, 3 Nov 2011 23:01:10 +0000 (19:01 -0400)
committerArtur Adib <arturadib@gmail.com>
Thu, 3 Nov 2011 23:01:10 +0000 (19:01 -0400)
test/test.py

index 66e1acd31f2c124c993e7b7220c9726272ed7d06..e3aefcfb5f2f474d4a489505644f552ab9d8977e 100644 (file)
@@ -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)