From e0a3da1fd2b832929e210dab4a84c91b8b984102 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sat, 16 Sep 2017 11:19:43 +0200 Subject: Make test_run into a flags field and disable generators again Now generators are only run in systemd --test mode, where this makes most sense (how are you going to test what would happen otherwise?). Fixes #6842. v2: - rename test_run to test_run_flags --- src/analyze/analyze-verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/analyze/analyze-verify.c') diff --git a/src/analyze/analyze-verify.c b/src/analyze/analyze-verify.c index 0ce0276d92..375b457ae8 100644 --- a/src/analyze/analyze-verify.c +++ b/src/analyze/analyze-verify.c @@ -264,7 +264,7 @@ int verify_units(char **filenames, UnitFileScope scope, bool check_man) { assert_se(set_unit_path(var) >= 0); - r = manager_new(scope, true, &m); + r = manager_new(scope, MANAGER_TEST_RUN_ENV_GENERATORS, &m); if (r < 0) return log_error_errno(r, "Failed to initialize manager: %m"); -- cgit v1.2.3