X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=test%2FTEST-14-MACHINE-ID%2Ftest.sh;h=72d7eacbf6f1dd41bc9a8815ea170b30ccfaf66c;hb=51fa85913c4d1826414c6fa5a2e235f65425d91a;hp=7342645bc5abe5dce6e564b1f8d563c376fc989f;hpb=35ccaf9332cd0bda4c36502d9e53f82835297541;p=thirdparty%2Fsystemd.git diff --git a/test/TEST-14-MACHINE-ID/test.sh b/test/TEST-14-MACHINE-ID/test.sh index 7342645bc5a..72d7eacbf6f 100755 --- a/test/TEST-14-MACHINE-ID/test.sh +++ b/test/TEST-14-MACHINE-ID/test.sh @@ -1,16 +1,12 @@ #!/bin/bash -# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- -# ex: ts=8 sw=4 sts=4 et filetype=sh set -e TEST_DESCRIPTION="/etc/machine-id testing" TEST_NO_NSPAWN=1 -SKIP_INITRD=yes + . $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 ( @@ -18,6 +14,7 @@ test_setup() { eval $(udevadm info --export --query=env --name=${LOOPDEV}p2) setup_basic_environment + mask_supporting_services printf "556f48e837bc4424a710fa2e2c9d3e3c\ne3d\n" >$initdir/etc/machine-id dracut_install mount cmp @@ -25,7 +22,6 @@ test_setup() { cat >$initdir/etc/systemd/system/testsuite.service < /failed ; echo OK > /testok' @@ -76,17 +72,7 @@ EOF chmod +x $initdir/test-machine-id-setup.sh setup_testsuite - ) || return 1 - - # mask some services that we do not want to run in these tests - ln -s /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service - ln -s /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service - ln -s /dev/null $initdir/etc/systemd/system/systemd-networkd.service - ln -s /dev/null $initdir/etc/systemd/system/systemd-networkd.socket - ln -s /dev/null $initdir/etc/systemd/system/systemd-resolved.service - - ddebug "umount $TESTDIR/root" - umount $TESTDIR/root + ) } do_test "$@"