]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/TEST-12-ISSUE-3171/test.sh
test: add create_empty_image_rootdir() to simplify testcase setup
[thirdparty/systemd.git] / test / TEST-12-ISSUE-3171 / test.sh
index 08b59ae165ca5e29953d0a724d6d8ca6c66a43ed..5b1c3aa3130b4327d198bb8603b55dc4bbfae6de 100755 (executable)
@@ -6,9 +6,7 @@ TEST_NO_QEMU=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
     (
@@ -93,9 +91,6 @@ EOF
     )
 
     setup_nspawn_root
-
-    ddebug "umount $TESTDIR/root"
-    umount $TESTDIR/root
 }
 
 do_test "$@"