Force trace on system() failure on FreeBSD while tracking down buildbot issues

llvm-svn: 214922
This commit is contained in:
Ed Maste 2014-08-05 20:33:17 +00:00
parent 1954f2e924
commit 6e496338e6
1 changed files with 6 additions and 1 deletions

View File

@ -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