[Buildbot-devel] running a command if another fails?

Nathaniel Smith njs at pobox.com
Sat Apr 30 05:03:09 UTC 2005


I have a buildstep that runs "make check"; it turns out that our
(autotest-based) testsuite is very unhelpful when tests fail; it
writes out a detailed error log to a file and just prints out the name
of the file.  (It's the same every time, thankfully.)  So, I'd like
some way to, after my step.Test(command=["make", "check"]), also
get at the contents of file "testsuite.log", if the make check failed.
What's the best way to do this?  I thought of running "make check ||
cat testsuite.log", but is there a better way?

-- Nathaniel

-- 
Damn the Solar System.  Bad light; planets too distant; pestered with
comets; feeble contrivance; could make a better one myself.
  -- Lord Jeffrey




More information about the devel mailing list