mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[lit] Drop --no-execute, which isn't generally useful.
llvm-svn: 187852
This commit is contained in:
parent
203a7afc3e
commit
156c1522d4
@ -19,8 +19,7 @@ class LitConfig:
|
||||
|
||||
def __init__(self, progname, path, quiet,
|
||||
useValgrind, valgrindLeakCheck, valgrindArgs,
|
||||
noExecute, debug, isWindows,
|
||||
params, config_prefix = None):
|
||||
debug, isWindows, params, config_prefix = None):
|
||||
# The name of the test runner.
|
||||
self.progname = progname
|
||||
# The items to add to the PATH environment variable.
|
||||
@ -29,7 +28,6 @@ class LitConfig:
|
||||
self.useValgrind = bool(useValgrind)
|
||||
self.valgrindLeakCheck = bool(valgrindLeakCheck)
|
||||
self.valgrindUserArgs = list(valgrindArgs)
|
||||
self.noExecute = noExecute
|
||||
self.debug = debug
|
||||
self.isWindows = bool(isWindows)
|
||||
self.params = dict(params)
|
||||
|
@ -99,9 +99,6 @@ 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)
|
||||
|
||||
|
@ -465,9 +465,6 @@ def executeShTest(test, litConfig, useExternalSh,
|
||||
|
||||
script, isXFail, tmpBase, execdir = res
|
||||
|
||||
if litConfig.noExecute:
|
||||
return (Test.PASS, '')
|
||||
|
||||
# Create the output directory if it does not already exist.
|
||||
Util.mkdir_p(os.path.dirname(tmpBase))
|
||||
|
||||
|
@ -232,7 +232,6 @@ def load_test_suite(inputs):
|
||||
useValgrind = False,
|
||||
valgrindLeakCheck = False,
|
||||
valgrindArgs = [],
|
||||
noExecute = False,
|
||||
debug = False,
|
||||
isWindows = (platform.system()=='Windows'),
|
||||
params = {})
|
||||
|
@ -214,9 +214,6 @@ def main(builtinParameters = {}):
|
||||
group.add_option("", "--time-tests", dest="timeTests",
|
||||
help="Track elapsed wall time for each test",
|
||||
action="store_true", default=False)
|
||||
group.add_option("", "--no-execute", dest="noExecute",
|
||||
help="Don't execute any tests (assume PASS)",
|
||||
action="store_true", default=False)
|
||||
parser.add_option_group(group)
|
||||
|
||||
group = OptionGroup(parser, "Test Selection")
|
||||
@ -283,7 +280,6 @@ def main(builtinParameters = {}):
|
||||
useValgrind = opts.useValgrind,
|
||||
valgrindLeakCheck = opts.valgrindLeakCheck,
|
||||
valgrindArgs = opts.valgrindArgs,
|
||||
noExecute = opts.noExecute,
|
||||
debug = opts.debug,
|
||||
isWindows = (platform.system()=='Windows'),
|
||||
params = userParams,
|
||||
|
Loading…
Reference in New Issue
Block a user