Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 9457b02689c69e152aa2cda68176fa51 > files > 182

buildbot-doc-0.8.4p1-2.fc16.noarch.rpm

<html lang="en">
<head>
<title>SubunitShellCommand - BuildBot Manual - 0.8.4p1</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="BuildBot Manual - 0.8.4p1">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="ShellCommand.html#ShellCommand" title="ShellCommand">
<link rel="prev" href="SetProperty.html#SetProperty" title="SetProperty">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This is the BuildBot manual for Buildbot version 0.8.4p1.

Copyright (C) 2005, 2006, 2009, 2010 Brian Warner

Copying and distribution of this file, with or without
modification, are permitted in any medium without royalty
provided the copyright notice and this notice are preserved.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="SubunitShellCommand"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="SetProperty.html#SetProperty">SetProperty</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="ShellCommand.html#ShellCommand">ShellCommand</a>
<hr>
</div>

<h5 class="subsubsection">4.12.4.10 SubunitShellCommand</h5>

<p><a name="index-buildbot_002esteps_002esubunit_002eSubunitShellCommand-115"></a>
This buildstep is similar to ShellCommand, except that it runs the log content
through a subunit filter to extract test and failure counts.

<pre class="example">     from buildbot.steps.subunit import SubunitShellCommand
     f.addStep(SubunitShellCommand(command="make test", failureOnNoTests=False))
</pre>
   <p>This runs <code>make test</code> and filters it through subunit. The 'tests' and
'test failed' progress metrics will now accumulate test data from the test run.

   <p>If <code>failureOnNoTests</code> is True, this step will fail if no test is run. By
default <code>failureOnNoTests</code> is False.

   </body></html>