Use pipefail when available.
[oota-llvm.git] / docs / CommandGuide / lit.rst
index 2f6d9a155613aae92d94ad1d71259785fbc95f26..a4681fb34ca2cfb2a5c97e31d2a9da291d40c118 100644 (file)
@@ -316,6 +316,10 @@ executed, two important global variables are predefined:
  *on_clone* function will generally modify), and (3) the test path to the new
  directory being scanned.
 
+ **pipefail** Normally a test using a shell pipe fails if any of the commands
+ on the pipe fail. If this is not desired, setting this variable to false
+ makes the test fail only if the last command in the pipe fails.
+
 TEST DISCOVERY
 ~~~~~~~~~~~~~~