From 620e52e674ce256a779646e7223138485a81fdb3 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sat, 5 Dec 2015 04:36:12 +0000 Subject: 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 --- lit.cfg | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lit.cfg') 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'] -- cgit v1.2.3