]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/TEST-29-UDEV-ID_RENAMING/test.sh
test: drop redirection to tty in integration tests
[thirdparty/systemd.git] / test / TEST-29-UDEV-ID_RENAMING / test.sh
CommitLineData
1ec38b85 1#!/bin/bash
1ec38b85
YW
2set -e
3TEST_DESCRIPTION="UDEV ID_RENAMING property"
4TEST_NO_NSPAWN=1
5
6. $TEST_BASE_DIR/test-functions
7QEMU_TIMEOUT=300
8
9test_setup() {
ec4cab49 10 create_empty_image_rootdir
1ec38b85
YW
11
12 (
13 LOG_LEVEL=5
14 eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
15
16 setup_basic_environment
17
18 # mask some services that we do not want to run in these tests
976ed3b6
ZJS
19 ln -fs /dev/null $initdir/etc/systemd/system/systemd-hwdb-update.service
20 ln -fs /dev/null $initdir/etc/systemd/system/systemd-journal-catalog-update.service
21 ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.service
22 ln -fs /dev/null $initdir/etc/systemd/system/systemd-networkd.socket
23 ln -fs /dev/null $initdir/etc/systemd/system/systemd-resolved.service
1ec38b85
YW
24
25 # setup the testsuite service
26 cat >$initdir/etc/systemd/system/testsuite.service <<EOF
27[Unit]
28Description=Testsuite service
29
30[Service]
31ExecStart=/bin/bash -x /testsuite.sh
32Type=oneshot
1ec38b85
YW
33EOF
34 cp testsuite.sh $initdir/
35
36 setup_testsuite
cc469c3d 37 )
1ec38b85
YW
38}
39
40do_test "$@"