]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/TEST-07-ISSUE-1981/test.sh
test: add create_empty_image_rootdir() to simplify testcase setup
[thirdparty/systemd.git] / test / TEST-07-ISSUE-1981 / test.sh
index e488cb4347f9bc81b28f0bd95898f8f62ecb13a6..2e4f67c5fe54955583cd7030541a1d90a5546482 100755 (executable)
@@ -8,9 +8,7 @@ TEST_NO_QEMU=1
 NSPAWN_TIMEOUT=30s
 
 test_setup() {
-    create_empty_image
-    mkdir -p $TESTDIR/root
-    mount ${LOOPDEV}p1 $TESTDIR/root
+    create_empty_image_rootdir
 
     # Create what will eventually be our root filesystem onto an overlay
     (
@@ -42,9 +40,6 @@ EOF
         setup_testsuite
     )
     setup_nspawn_root
-
-    ddebug "umount $TESTDIR/root"
-    umount $TESTDIR/root
 }
 
 do_test "$@"