summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMartin Pitt <martin@piware.de>2017-02-15 08:52:17 +0100
committerMartin Pitt <martin@piware.de>2017-02-16 21:36:31 +0100
commitc60b6ddafbd462378073f85e4690455fc3908ad2 (patch)
tree2e60f70d2f78d352e1be0196b55706f90b6177be /src/test
parent1f35a3b2a4a6bdc97c0eacfee208e05b2f67f523 (diff)
test: show error message if $SYSTEMD_TEST_DATA does not exist
Rename get_exe_relative_testdata_dir() to get_testdata_dir() and move the env var check into that, so that everything interesting happens at the same place.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-helper.h b/src/test/test-helper.h
index 02608434be..7c9eff2483 100644
--- a/src/test/test-helper.h
+++ b/src/test/test-helper.h
@@ -42,5 +42,5 @@
-ENOMEDIUM /* cannot determine cgroup */ \
)
-#define TEST_DATA_DIR(subdir) \
- strjoina(getenv("SYSTEMD_TEST_DATA") ?: get_exe_relative_testdata_dir(), subdir)
+#define TEST_DATA_DIR(subdir) \
+ strjoina(get_testdata_dir(), subdir)