diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/tests.c | 2 | ||||
-rw-r--r-- | src/test/test-helper.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/tests.c b/src/shared/tests.c index 189aa36bc6..bae113bdc8 100644 --- a/src/shared/tests.c +++ b/src/shared/tests.c @@ -43,7 +43,7 @@ const char* get_exe_relative_testdata_dir(void) { assert_se(readlink_and_make_absolute("/proc/self/exe", &exedir) >= 0); assert_se(snprintf(testdir, sizeof(testdir), "%s/testdata", dirname(exedir)) > 0); if (access(testdir, F_OK) < 0) { - fprintf(stderr, "Test data directory '%s' does not exist, set $TEST_DIR\n", testdir); + fprintf(stderr, "Test data directory '%s' does not exist, set $SYSTEMD_TEST_DATA\n", testdir); exit(1); } return testdir; diff --git a/src/test/test-helper.h b/src/test/test-helper.h index 4e633ae6d8..02608434be 100644 --- a/src/test/test-helper.h +++ b/src/test/test-helper.h @@ -43,4 +43,4 @@ ) #define TEST_DATA_DIR(subdir) \ - strjoina(getenv("TEST_DIR") ?: get_exe_relative_testdata_dir(), subdir) + strjoina(getenv("SYSTEMD_TEST_DATA") ?: get_exe_relative_testdata_dir(), subdir) |