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.
|
||||
#
|
||||
|
@ -104,18 +104,18 @@ def ensure_no_dot_so_in_depends():
|
|||
|
||||
for lib in libraries:
|
||||
if lib.find(".so") != -1:
|
||||
print lib
|
||||
print(lib)
|
||||
exit_code = 1
|
||||
else:
|
||||
exit_code = 2
|
||||
print "arch-specific build dir not present"
|
||||
print "Did you build the ./depends tree?"
|
||||
print "Are you on a currently unsupported architecture?"
|
||||
print("arch-specific build dir not present")
|
||||
print("Did you build the ./depends tree?")
|
||||
print("Are you on a currently unsupported architecture?")
|
||||
|
||||
if exit_code == 0:
|
||||
print "PASS."
|
||||
print("PASS.")
|
||||
else:
|
||||
print "FAIL."
|
||||
print("FAIL.")
|
||||
|
||||
return exit_code == 0
|
||||
|
||||
|
@ -163,7 +163,7 @@ STAGE_COMMANDS = {
|
|||
def run_stage(stage):
|
||||
print('Running stage %s' % stage)
|
||||
print('=' * (len(stage) + 14))
|
||||
print
|
||||
print()
|
||||
|
||||
cmd = STAGE_COMMANDS[stage]
|
||||
if type(cmd) == type([]):
|
||||
|
@ -171,10 +171,10 @@ def run_stage(stage):
|
|||
else:
|
||||
ret = cmd()
|
||||
|
||||
print
|
||||
print()
|
||||
print('-' * (len(stage) + 15))
|
||||
print('Finished stage %s' % stage)
|
||||
print
|
||||
print()
|
||||
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Reference in New Issue