summaryrefslogtreecommitdiff
path: root/test/TEST-16-EXTEND-TIMEOUT
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@canonical.com>2019-07-12 11:47:26 -0400
committerDan Streetman <ddstreet@canonical.com>2019-07-16 18:05:15 -0400
commitec4cab49c95d03d23cad9741685f3837a8ccaab4 (patch)
tree315c884c2c3e9e09af252b54297e2dca2d1a26cd /test/TEST-16-EXTEND-TIMEOUT
parent26408c7d5f39ac5b7afb3902eb340917ae821c88 (diff)
downloadsystemd-ec4cab49c95d03d23cad9741685f3837a8ccaab4.tar.gz
test: add create_empty_image_rootdir() to simplify testcase setup
Almost all tests were manually mounting/unmounting $TESTDIR/root from the loopback image; this moves all that into test-functions so the test setup functions are simplier. Also add test_setup_cleanup() function, to cleanup what is mounted by create_empty_image_rootdir()
Diffstat (limited to 'test/TEST-16-EXTEND-TIMEOUT')
-rwxr-xr-xtest/TEST-16-EXTEND-TIMEOUT/test.sh9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/TEST-16-EXTEND-TIMEOUT/test.sh b/test/TEST-16-EXTEND-TIMEOUT/test.sh
index 7e6dc45f6b..016a877b96 100755
--- a/test/TEST-16-EXTEND-TIMEOUT/test.sh
+++ b/test/TEST-16-EXTEND-TIMEOUT/test.sh
@@ -8,8 +8,6 @@ TEST_NO_QEMU=1
test_setup() {
create_empty_image
- mkdir -p $TESTDIR/root
- mount ${LOOPDEV}p1 $TESTDIR/root
# Create what will eventually be our root filesystem onto an overlay
(
@@ -39,13 +37,6 @@ test_setup() {
ln -s /dev/null $initdir/etc/systemd/system/systemd-resolved.service
setup_nspawn_root
-
- ddebug "umount $TESTDIR/root"
- umount $TESTDIR/root
-}
-
-test_cleanup() {
- return 0
}
do_test "$@"