mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[lit] Avoid comparisons with None.
llvm-svn: 187919
This commit is contained in:
parent
3c1d742e14
commit
ffb7ba128b
@ -224,7 +224,9 @@ def executeShCmd(cmd, cfg, cwd, results):
|
||||
results.append((cmd.commands[i], out, err, res))
|
||||
if cmd.pipe_err:
|
||||
# Python treats the exit code as a signed char.
|
||||
if res < 0:
|
||||
if exitCode is None:
|
||||
exitCode = res
|
||||
elif res < 0:
|
||||
exitCode = min(exitCode, res)
|
||||
else:
|
||||
exitCode = max(exitCode, res)
|
||||
|
Loading…
Reference in New Issue
Block a user