lit.TestFormats.GoogleTest: Honor LitConfig.noExecute, or --no-execute were ignored.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 13 Mar 2013 06:16:33 +0000 (06:16 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 13 Mar 2013 06:16:33 +0000 (06:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176930 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestFormats.py

index a272976ca00540d69934f02045cf1be640eba3e1..26541f183bf80ea4f1a0f654c2ee308cde314a35 100644 (file)
@@ -97,6 +97,9 @@ class GoogleTest(object):
         if litConfig.useValgrind:
             cmd = litConfig.valgrindArgs + cmd
 
+        if litConfig.noExecute:
+            return Test.PASS, ''
+
         out, err, exitCode = TestRunner.executeCommand(
             cmd, env=test.config.environment)