Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
utils/lit/lit/LitConfig.py
Show All 18 Lines | class LitConfig(object): | ||||
easily. | easily. | ||||
""" | """ | ||||
def __init__(self, progname, path, quiet, | def __init__(self, progname, path, quiet, | ||||
useValgrind, valgrindLeakCheck, valgrindArgs, | useValgrind, valgrindLeakCheck, valgrindArgs, | ||||
noExecute, debug, isWindows, | noExecute, debug, isWindows, | ||||
params, config_prefix = None, | params, config_prefix = None, | ||||
maxIndividualTestTime = 0, | maxIndividualTestTime = 0, | ||||
maxFailures = None): | maxFailures = None, | ||||
xFailRequirePR = False, | |||||
bugTrackerRegex = None): | |||||
# The name of the test runner. | # The name of the test runner. | ||||
self.progname = progname | self.progname = progname | ||||
# The items to add to the PATH environment variable. | # The items to add to the PATH environment variable. | ||||
self.path = [str(p) for p in path] | self.path = [str(p) for p in path] | ||||
self.quiet = bool(quiet) | self.quiet = bool(quiet) | ||||
self.useValgrind = bool(useValgrind) | self.useValgrind = bool(useValgrind) | ||||
self.valgrindLeakCheck = bool(valgrindLeakCheck) | self.valgrindLeakCheck = bool(valgrindLeakCheck) | ||||
self.valgrindUserArgs = list(valgrindArgs) | self.valgrindUserArgs = list(valgrindArgs) | ||||
Show All 21 Lines | def __init__(self, progname, path, quiet, | ||||
self.valgrindArgs.append('--leak-check=full') | self.valgrindArgs.append('--leak-check=full') | ||||
else: | else: | ||||
# The default is 'summary'. | # The default is 'summary'. | ||||
self.valgrindArgs.append('--leak-check=no') | self.valgrindArgs.append('--leak-check=no') | ||||
self.valgrindArgs.extend(self.valgrindUserArgs) | self.valgrindArgs.extend(self.valgrindUserArgs) | ||||
self.maxIndividualTestTime = maxIndividualTestTime | self.maxIndividualTestTime = maxIndividualTestTime | ||||
self.maxFailures = maxFailures | self.maxFailures = maxFailures | ||||
self.xFailRequirePR = xFailRequirePR | |||||
self.bugTrackerRegex = bugTrackerRegex | |||||
@property | @property | ||||
def maxIndividualTestTime(self): | def maxIndividualTestTime(self): | ||||
""" | """ | ||||
Interface for getting maximum time to spend executing | Interface for getting maximum time to spend executing | ||||
a single test | a single test | ||||
""" | """ | ||||
return self._maxIndividualTestTime | return self._maxIndividualTestTime | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |