aboutsummaryrefslogtreecommitdiff
path: root/lit.cfg
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-12-05 04:36:12 +0000
committerMatthias Braun <matze@braunis.de>2015-12-05 04:36:12 +0000
commit620e52e674ce256a779646e7223138485a81fdb3 (patch)
tree4d5fac49d87964f03b5e4be10e980b0eb7421ad3 /lit.cfg
parent5f6ac3227e21137e6f3b3581fe47c507f6d6e8b2 (diff)
RunSafely: Add option to omit exit status from output.
This is useful for external benchmark suites which bring reference files for stdout without the llvm-test-suite convention of having an exit code behind the stdout output. As discussed in D14678 I am going for post-commit review as cmake/lit test-suite support is still in early development. Differential Revision: http://reviews.llvm.org/D14679 git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@254835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lit.cfg')
-rw-r--r--lit.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/lit.cfg b/lit.cfg
index 5a49444e..27e011fc 100644
--- a/lit.cfg
+++ b/lit.cfg
@@ -110,6 +110,8 @@ def prepareRunSafely(config, commandline, outfile):
runsafely = "%s/RunSafely.sh" % config.test_suite_root
runsafely_prefix = [ runsafely ]
+ if not config.output_append_exitstatus:
+ runsafely_prefix += ["--omit-exitval"]
if config.remote_host:
runsafely_prefix += [ "-r", config.remote_host ]
if config.remote_user:
@@ -215,5 +217,6 @@ config.name = 'test-suite'
config.test_format = TestSuiteTest()
config.suffixes = ['.test']
config.excludes = ['ABI-Testsuite']
+config.output_append_exitstatus = False
if 'SSH_AUTH_SOCK' in os.environ:
config.environment['SSH_AUTH_SOCK'] = os.environ['SSH_AUTH_SOCK']