Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_runner.py
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | def run(self, portseed_offset): | ||||
status = "Skipped" | status = "Skipped" | ||||
else: | else: | ||||
status = "Failed" | status = "Failed" | ||||
return TestResult(self.test_num, name, testdir, status, int(time.time() - time0), stdout, stderr) | return TestResult(self.test_num, name, testdir, status, int(time.time() - time0), stdout, stderr) | ||||
def on_ci(): | def on_ci(): | ||||
return os.getenv('TRAVIS') == 'true' or os.getenv('TEAMCITY_VERSION') != None | return os.getenv('TRAVIS') == 'true' or os.getenv('TEAMCITY_VERSION') is not None | ||||
def main(): | def main(): | ||||
# Read config generated by configure. | # Read config generated by configure. | ||||
config = configparser.ConfigParser() | config = configparser.ConfigParser() | ||||
configfile = os.path.join(os.path.abspath( | configfile = os.path.join(os.path.abspath( | ||||
os.path.dirname(__file__)), "..", "config.ini") | os.path.dirname(__file__)), "..", "config.ini") | ||||
config.read_file(open(configfile, encoding="utf8")) | config.read_file(open(configfile, encoding="utf8")) | ||||
▲ Show 20 Lines • Show All 626 Lines • Show Last 20 Lines |