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