summaryrefslogtreecommitdiffstats
path: root/test/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test/meson.build')
-rw-r--r--test/meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/meson.build b/test/meson.build
index c4f4057e59..f93137c07a 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -431,12 +431,18 @@ foreach test_number, dirname : integration_tests
'--',
] + test_params['mkosi_args']
+ integration_test_env = {}
+
+ if want_integration_tests
+ integration_test_env = {'SYSTEMD_INTEGRATION_TESTS': '1'}
+ endif
+
# We don't explicitly depend on the "mkosi" target because that means the image is rebuilt
# on every "ninja -C build". Instead, the mkosi target has to be rebuilt manually before
# running the integration tests with mkosi.
test(dirname,
integration_test_wrapper,
- env : test_env,
+ env : integration_test_env,
args : args,
timeout : test_params['timeout'],
suite : 'integration-tests')