aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-04-30 13:29:16 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-04-30 13:29:16 -0700
commit542255993cce730b01d8bf79bf48aa8f5ad36fc9 (patch)
tree97d42c142cba63abc6b736f915fcbd099334e049
parentcd566d2bd5f2f1faa3576b51b6b47c74a7ed0392 (diff)
downloadmeson-542255993cce730b01d8bf79bf48aa8f5ad36fc9.zip
meson-542255993cce730b01d8bf79bf48aa8f5ad36fc9.tar.gz
meson-542255993cce730b01d8bf79bf48aa8f5ad36fc9.tar.bz2
mtest: Replace if (bool) { return bool; } with return bool;
-rw-r--r--mesonbuild/mtest.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 3239736..b90a65d 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -544,9 +544,7 @@ def write_json_log(jsonlogfile: T.TextIO, test_name: str, result: TestRun) -> No
jsonlogfile.write(json.dumps(jresult) + '\n')
def run_with_mono(fname: str) -> bool:
- if fname.endswith('.exe') and not (is_windows() or is_cygwin()):
- return True
- return False
+ return fname.endswith('.exe') and not (is_windows() or is_cygwin())
def load_benchmarks(build_dir: str) -> T.List['TestSerialisation']:
datafile = Path(build_dir) / 'meson-private' / 'meson_benchmark_setup.dat'