diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2024-07-16 11:14:06 -0700 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-08-15 14:10:48 -0400 |
| commit | 5d322659567f004a444e0133ec40a61df5a46775 (patch) | |
| tree | 80f7c0fed76104e30f2b12e09c64ae03424cf143 /unittests/baseplatformtests.py | |
| parent | 67b238d6161d79674dc513cafed5236eb255dddd (diff) | |
| download | meson-5d322659567f004a444e0133ec40a61df5a46775.tar.gz | |
unittests: use os.environ.get for MESON_UNIT_TEST_BACKEND
Being unset shouldn't cause a ton of our tests to fail.
Diffstat (limited to 'unittests/baseplatformtests.py')
| -rw-r--r-- | unittests/baseplatformtests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/baseplatformtests.py b/unittests/baseplatformtests.py index 597633514..7ba2aaed4 100644 --- a/unittests/baseplatformtests.py +++ b/unittests/baseplatformtests.py @@ -52,7 +52,7 @@ class BasePlatformTests(TestCase): src_root = str(PurePath(__file__).parents[1]) self.src_root = src_root # Get the backend - self.backend_name = os.environ['MESON_UNIT_TEST_BACKEND'] + self.backend_name = os.environ.get('MESON_UNIT_TEST_BACKEND', 'ninja') backend_type = 'vs' if self.backend_name.startswith('vs') else self.backend_name self.backend = getattr(Backend, backend_type) self.meson_args = ['--backend=' + self.backend_name] |
