From fce7f1f4348d7a84b77de3efc8169aa72279a52e Mon Sep 17 00:00:00 2001 From: Daniel Malea Date: Wed, 20 Feb 2013 20:12:11 +0000 Subject: [PATCH] Fix a bug that causes dotest.py to exit with a passing exit-code, even if some tests fail - occurs when multiple compilers/architectures are tested (via -C or -A flags) llvm-svn: 175656 --- lldb/test/dotest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index 9f75e19..021e666 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -227,6 +227,7 @@ testdirs = [ sys.path[0] ] # Separator string. separator = '-' * 70 +failed = False def usage(parser): parser.print_help() @@ -1516,6 +1517,7 @@ for ia in range(len(archs) if iterArchs else 1): failfast=failfast, resultclass=LLDBTestResult).run(suite) + failed = failed or not result.wasSuccessful() if sdir_has_content and not parsable: sys.stderr.write("Session logs for test failures/errors/unexpected successes" @@ -1537,4 +1539,4 @@ if ("LLDB_TESTSUITE_FORCE_FINISH" in os.environ): subprocess.Popen(["/bin/sh", "-c", "kill %s; exit 0" % (os.getpid())]) # Exiting. -sys.exit(not result.wasSuccessful()) +sys.exit(failed) -- 2.7.4