]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-unit-file.c
tests: use a helper function to parse environment and open logging
[thirdparty/systemd.git] / src / test / test-unit-file.c
index 0b84d4c4ed227939f5436f1213bb6e2a4b03c4a1..71321468279b16c71943105c7b8a5a48c6ed298f 100644 (file)
@@ -896,8 +896,7 @@ int main(int argc, char *argv[]) {
         _cleanup_(rm_rf_physical_and_freep) char *runtime_dir = NULL;
         int r;
 
-        log_parse_environment();
-        log_open();
+        test_setup_logging(LOG_INFO);
 
         r = enter_cgroup_subroot();
         if (r == -ENOMEDIUM)