aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorAleksey Filippov <alekseyf@google.com>2018-03-28 21:31:04 +0000
committerAleksey Filippov <alekseyf@google.com>2018-03-28 21:31:04 +0000
commitddc6f72507a19c32b34f560c5f2b8c07a80682e7 (patch)
treed136fc587d88ec3f788a4b290ad97896f72a1853 /mesonbuild/mtest.py
parent827d33c8b65aaecd4817d67d821f0b7db6048717 (diff)
downloadmeson-ddc6f72507a19c32b34f560c5f2b8c07a80682e7.zip
meson-ddc6f72507a19c32b34f560c5f2b8c07a80682e7.tar.gz
meson-ddc6f72507a19c32b34f560c5f2b8c07a80682e7.tar.bz2
Use consistent quotes
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 412896e..1c2a9ae 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -134,7 +134,7 @@ class TestRun:
if self.cmd is None:
res += 'NONE\n'
else:
- res += "%s%s\n" % (''.join(["%s='%s' " % (k, v) for k, v in self.env.items()]), ' ' .join(self.cmd))
+ res += '%s%s\n' % (''.join(["%s='%s' " % (k, v) for k, v in self.env.items()]), ' ' .join(self.cmd))
if self.stdo:
res += '--- stdout ---\n'
res += self.stdo
@@ -284,10 +284,10 @@ class SingleTestRunner:
(stdo, stde) = p.communicate(timeout=timeout)
except subprocess.TimeoutExpired:
if self.options.verbose:
- print("%s time out (After %d seconds)" % (self.test.name, timeout))
+ print('%s time out (After %d seconds)' % (self.test.name, timeout))
timed_out = True
except KeyboardInterrupt:
- mlog.warning("CTRL-C detected while running %s" % (self.test.name))
+ mlog.warning('CTRL-C detected while running %s' % (self.test.name))
kill_test = True
finally:
if self.options.gdb:
@@ -352,7 +352,7 @@ class TestHarness:
self.jsonlogfile.close()
def merge_suite_options(self, options, test):
- if ":" in options.setup:
+ if ':' in options.setup:
if options.setup not in self.build_data.test_setups:
sys.exit("Unknown test setup '%s'." % options.setup)
current = self.build_data.test_setups[options.setup]
@@ -617,7 +617,7 @@ TIMEOUT: %4d
self.print_stats(numlen, tests, name, result.result(), i)
def run_special(self):
- 'Tests run by the user, usually something like "under gdb 1000 times".'
+ '''Tests run by the user, usually something like "under gdb 1000 times".'''
if self.is_run:
raise RuntimeError('Can not use run_special after a full run.')
tests = self.get_tests()
@@ -634,7 +634,7 @@ def list_tests(th):
def rebuild_all(wd):
if not os.path.isfile(os.path.join(wd, 'build.ninja')):
- print("Only ninja backend is supported to rebuild tests before running them.")
+ print('Only ninja backend is supported to rebuild tests before running them.')
return True
ninja = environment.detect_ninja()
@@ -646,7 +646,7 @@ def rebuild_all(wd):
p.communicate()
if p.returncode != 0:
- print("Could not rebuild")
+ print('Could not rebuild')
return False
return True
@@ -675,7 +675,7 @@ def run(args):
if check_bin is not None:
exe = ExternalProgram(check_bin, silent=True)
if not exe.found():
- sys.exit("Could not find requested program: %s" % check_bin)
+ sys.exit('Could not find requested program: %s' % check_bin)
options.wd = os.path.abspath(options.wd)
if not options.list and not options.no_rebuild: