From: Dan Streetman Date: Sat, 17 Aug 2019 16:20:56 +0000 (-0400) Subject: test: TEST-33 and TEST-36 should use create_empty_image_rootdir X-Git-Tag: v243-rc2~22^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f42296752959a4c741c1d980f340000e66743bf2;p=thirdparty%2Fsystemd.git test: TEST-33 and TEST-36 should use create_empty_image_rootdir This recently added function handles mkdir and mounting of the empty image, as well as umounting after test_setup. --- diff --git a/test/TEST-33-CLEAN-UNIT/test.sh b/test/TEST-33-CLEAN-UNIT/test.sh index 44082af4d4b..aeda69baae4 100755 --- a/test/TEST-33-CLEAN-UNIT/test.sh +++ b/test/TEST-33-CLEAN-UNIT/test.sh @@ -7,9 +7,7 @@ TEST_DESCRIPTION="test CleanUnit" . $TEST_BASE_DIR/test-functions test_setup() { - create_empty_image - mkdir -p $TESTDIR/root - mount ${LOOPDEV}p1 $TESTDIR/root + create_empty_image_rootdir ( LOG_LEVEL=5 @@ -41,9 +39,6 @@ EOF setup_testsuite ) || return 1 setup_nspawn_root - - ddebug "umount $TESTDIR/root" - umount $TESTDIR/root } do_test "$@" diff --git a/test/TEST-36-NUMAPOLICY/test.sh b/test/TEST-36-NUMAPOLICY/test.sh index f0a321e7a16..5e775b2d5ad 100755 --- a/test/TEST-36-NUMAPOLICY/test.sh +++ b/test/TEST-36-NUMAPOLICY/test.sh @@ -7,9 +7,7 @@ QEMU_OPTIONS="-numa node,nodeid=0" . $TEST_BASE_DIR/test-functions test_setup() { - create_empty_image - mkdir -p $TESTDIR/root - mount ${LOOPDEV}p1 $TESTDIR/root + create_empty_image_rootdir ( LOG_LEVEL=5 @@ -43,9 +41,6 @@ EOF setup_testsuite ) || return 1 setup_nspawn_root - - ddebug "umount $TESTDIR/root" - umount $TESTDIR/root } do_test "$@"