update /usr/bin/env; fix print conventions
This commit is contained in:
parent
a2d719b9ff
commit
3dde472c96
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# Execute all of the automated tests related to Zcash.
|
# Execute all of the automated tests related to Zcash.
|
||||||
#
|
#
|
||||||
|
@ -104,18 +104,18 @@ def ensure_no_dot_so_in_depends():
|
||||||
|
|
||||||
for lib in libraries:
|
for lib in libraries:
|
||||||
if lib.find(".so") != -1:
|
if lib.find(".so") != -1:
|
||||||
print lib
|
print(lib)
|
||||||
exit_code = 1
|
exit_code = 1
|
||||||
else:
|
else:
|
||||||
exit_code = 2
|
exit_code = 2
|
||||||
print "arch-specific build dir not present"
|
print("arch-specific build dir not present")
|
||||||
print "Did you build the ./depends tree?"
|
print("Did you build the ./depends tree?")
|
||||||
print "Are you on a currently unsupported architecture?"
|
print("Are you on a currently unsupported architecture?")
|
||||||
|
|
||||||
if exit_code == 0:
|
if exit_code == 0:
|
||||||
print "PASS."
|
print("PASS.")
|
||||||
else:
|
else:
|
||||||
print "FAIL."
|
print("FAIL.")
|
||||||
|
|
||||||
return exit_code == 0
|
return exit_code == 0
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ STAGE_COMMANDS = {
|
||||||
def run_stage(stage):
|
def run_stage(stage):
|
||||||
print('Running stage %s' % stage)
|
print('Running stage %s' % stage)
|
||||||
print('=' * (len(stage) + 14))
|
print('=' * (len(stage) + 14))
|
||||||
print
|
print()
|
||||||
|
|
||||||
cmd = STAGE_COMMANDS[stage]
|
cmd = STAGE_COMMANDS[stage]
|
||||||
if type(cmd) == type([]):
|
if type(cmd) == type([]):
|
||||||
|
@ -171,10 +171,10 @@ def run_stage(stage):
|
||||||
else:
|
else:
|
||||||
ret = cmd()
|
ret = cmd()
|
||||||
|
|
||||||
print
|
print()
|
||||||
print('-' * (len(stage) + 15))
|
print('-' * (len(stage) + 15))
|
||||||
print('Finished stage %s' % stage)
|
print('Finished stage %s' % stage)
|
||||||
print
|
print()
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue