summaryrefslogtreecommitdiff
path: root/unittests/baseplatformtests.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-07-16 11:14:06 -0700
committerEli Schwartz <eschwartz93@gmail.com>2024-08-15 14:10:48 -0400
commit5d322659567f004a444e0133ec40a61df5a46775 (patch)
tree80f7c0fed76104e30f2b12e09c64ae03424cf143 /unittests/baseplatformtests.py
parent67b238d6161d79674dc513cafed5236eb255dddd (diff)
downloadmeson-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.py2
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]