mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Fixing ref/ update
This commit is contained in:
parent
7bb9f74fa2
commit
2d51ee8fcd
1 changed files with 3 additions and 3 deletions
|
@ -506,9 +506,7 @@ def maybeUpdateRefImages(options, browser):
|
||||||
print ' Yes! The references in tmp/ can be synced with ref/.'
|
print ' Yes! The references in tmp/ can be synced with ref/.'
|
||||||
if options.reftest:
|
if options.reftest:
|
||||||
startReftest(browser, options)
|
startReftest(browser, options)
|
||||||
if options.noPrompts or not prompt('Would you like to update the master copy in ref/?'):
|
if options.noPrompts or prompt('Would you like to update the master copy in ref/?'):
|
||||||
print ' OK, not updating.'
|
|
||||||
else:
|
|
||||||
sys.stdout.write(' Updating ref/ ... ')
|
sys.stdout.write(' Updating ref/ ... ')
|
||||||
|
|
||||||
# XXX unclear what to do on errors here ...
|
# XXX unclear what to do on errors here ...
|
||||||
|
@ -517,6 +515,8 @@ def maybeUpdateRefImages(options, browser):
|
||||||
subprocess.check_call(( 'rsync', '-arv', 'tmp/', 'ref/' ))
|
subprocess.check_call(( 'rsync', '-arv', 'tmp/', 'ref/' ))
|
||||||
|
|
||||||
print 'done'
|
print 'done'
|
||||||
|
else:
|
||||||
|
print ' OK, not updating.'
|
||||||
|
|
||||||
def startReftest(browser, options):
|
def startReftest(browser, options):
|
||||||
url = "http://%s:%s" % (SERVER_HOST, options.port)
|
url = "http://%s:%s" % (SERVER_HOST, options.port)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue