]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/TEST-11-ISSUE-3166/test.sh
test: add create_empty_image_rootdir() to simplify testcase setup
[thirdparty/systemd.git] / test / TEST-11-ISSUE-3166 / test.sh
index 267224c0429ec33eb06eb8ee95c2d67275bc271b..c50efb8c9b174c06c8613c62344dc75dd1beb9f9 100755 (executable)
@@ -6,9 +6,7 @@ TEST_NO_NSPAWN=1
 . $TEST_BASE_DIR/test-functions
 
 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
     (
@@ -65,9 +63,6 @@ EOF
         chmod 0755 $initdir/test-fail-on-restart.sh
         setup_testsuite
     )
-
-    ddebug "umount $TESTDIR/root"
-    umount $TESTDIR/root
 }
 
 do_test "$@"