diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-01-29 23:24:22 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-01-31 20:12:21 +0530 |
commit | 58852e62905684343e1219ecef1b632c54816507 (patch) | |
tree | 54478c0c80e6367ad2206227829d24af694e75e9 /run_tests.py | |
parent | a683fc30abc976e453a94074f53940bb5ef200e4 (diff) | |
download | meson-58852e62905684343e1219ecef1b632c54816507.tar.gz |
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-x | run_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/run_tests.py b/run_tests.py index 25a2d7f97..7f85be6eb 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) |