aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2019-01-29 23:24:22 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-01-31 20:12:21 +0530
commit58852e62905684343e1219ecef1b632c54816507 (patch)
tree54478c0c80e6367ad2206227829d24af694e75e9 /run_tests.py
parenta683fc30abc976e453a94074f53940bb5ef200e4 (diff)
downloadmeson-58852e62905684343e1219ecef1b632c54816507.zip
meson-58852e62905684343e1219ecef1b632c54816507.tar.gz
meson-58852e62905684343e1219ecef1b632c54816507.tar.bz2
unit tests: Simplify get_fake_env()
Almost every test already uses '' for the srcdir/builddir/etc. Make it official.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/run_tests.py b/run_tests.py
index 25a2d7f..7f85be6 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -66,7 +66,7 @@ class FakeCompilerOptions:
def __init__(self):
self.value = []
-def get_fake_options(prefix):
+def get_fake_options(prefix=''):
import argparse
opts = argparse.Namespace()
opts.cross_file = None
@@ -76,7 +76,7 @@ def get_fake_options(prefix):
opts.native_file = []
return opts
-def get_fake_env(sdir, bdir, prefix, opts = None):
+def get_fake_env(sdir='', bdir=None, prefix='', opts=None):
if opts is None:
opts = get_fake_options(prefix)
env = Environment(sdir, bdir, opts)