The value returned from system() is encoded bag of bits that gets
misinterpretted once it starts propagate through the system. Normalize
it to 0/1.
command = "git checkout %s" % fx_commit
log(command)
returncode = 0 if testing else os.system(command)
- if not returncode == 0:
- sys.exit(returncode)
+ if returncode != 0:
+ sys.exit(1)
# On Unix, coreFx build.sh requires HOME to be set, and it isn't by default
# under our CI system, so set it now.
log(command)
returncode = 0 if testing else os.system(command)
if returncode != 0:
- sys.exit(returncode)
+ sys.exit(1)
# Build the build-tests command line.
log(command)
returncode = 0 if testing else os.system(command)
+ if returncode != 0:
+ sys.exit(1)
- sys.exit(returncode)
+ sys.exit(0)
##########################################################################