summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]