summaryrefslogtreecommitdiffstats
path: root/test/test-functions
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@canonical.com>2019-08-17 18:24:00 +0200
committerDan Streetman <ddstreet@canonical.com>2019-08-17 18:29:15 +0200
commit8c03df36fe62372222cb7d9ca8f02c894f217413 (patch)
treeb61d08a11ce12e9d775c186dfec24ba11c29918e /test/test-functions
parenttest: replace $TESTDIR/root with $initdir (diff)
downloadsystemd-8c03df36fe62372222cb7d9ca8f02c894f217413.tar.xz
systemd-8c03df36fe62372222cb7d9ca8f02c894f217413.zip
test/test-functions: add mkdir to import_initdir
This dir is created by create_empty_image_rootdir, as well as indirectly by some other functions, but it should be created by import_initdir so the newly-exported $initdir exists and can be used immediately without relying on other functions to create it.
Diffstat (limited to '')
-rw-r--r--test/test-functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions
index a534fb218d..03bfcaf972 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -941,6 +941,7 @@ import_testdir() {
import_initdir() {
initdir=$TESTDIR/root
+ mkdir -p $initdir
export initdir
}