forked from OSchip/llvm-project
Force trace on system() failure on FreeBSD while tracking down buildbot issues
llvm-svn: 214922
This commit is contained in:
parent
1954f2e924
commit
6e496338e6
|
@ -273,7 +273,12 @@ def system(commands, **kwargs):
|
|||
output, error = process.communicate()
|
||||
retcode = process.poll()
|
||||
|
||||
with recording(test, traceAlways) as sbuf:
|
||||
# Enable trace on failure return while tracking down FreeBSD buildbot issues
|
||||
trace = traceAlways
|
||||
if not trace and retcode and sys.platform.startswith("freebsd"):
|
||||
trace = True
|
||||
|
||||
with recording(test, trace) as sbuf:
|
||||
print >> sbuf
|
||||
print >> sbuf, "os command:", shellCommand
|
||||
print >> sbuf, "with pid:", pid
|
||||
|
|
Loading…
Reference in New Issue