aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/CommandGuide/lit.rst
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-26 22:32:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-26 22:32:58 +0000
commit2a2a0973b8d67817c30a0105b7a09f87ec3b4fd1 (patch)
tree132fb2aede44ab050147f3664fcd8009548d34a5 /llvm/docs/CommandGuide/lit.rst
parentf9709e753ffefe931b080bcc6ef5e9217e5520e5 (diff)
downloadllvm-2a2a0973b8d67817c30a0105b7a09f87ec3b4fd1.zip
llvm-2a2a0973b8d67817c30a0105b7a09f87ec3b4fd1.tar.gz
llvm-2a2a0973b8d67817c30a0105b7a09f87ec3b4fd1.tar.bz2
Use pipefail when available.
This change makes test with RUN lines like RUN: opt ... | FileCheck fail if opt fails, even if it prints what FileCheck wants. Enabling this found some interesting cases of broken tests that were not being noticed because opt (or some other tool) was crashing late. Pipefail is used when the shell supports it or when using the internal python based tester. llvm-svn: 187261
Diffstat (limited to 'llvm/docs/CommandGuide/lit.rst')
-rw-r--r--llvm/docs/CommandGuide/lit.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/lit.rst b/llvm/docs/CommandGuide/lit.rst
index 2f6d9a1..a4681fb 100644
--- a/llvm/docs/CommandGuide/lit.rst
+++ b/llvm/docs/CommandGuide/lit.rst
@@ -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
~~~~~~~~~~~~~~