]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/test-functions: add mkdir to import_initdir 13344/head
authorDan Streetman <ddstreet@canonical.com>
Sat, 17 Aug 2019 16:24:00 +0000 (12:24 -0400)
committerDan Streetman <ddstreet@canonical.com>
Sat, 17 Aug 2019 16:29:15 +0000 (12:29 -0400)
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.

test/test-functions

index a534fb218d77821c513046ec7b2ff3a0e021de60..03bfcaf972fc83584c8ed7467d02881a09516dbf 100644 (file)
@@ -941,6 +941,7 @@ import_testdir() {
 
 import_initdir() {
     initdir=$TESTDIR/root
+    mkdir -p $initdir
     export initdir
 }