]>
Commit | Line | Data |
---|---|---|
24aab793 | 1 | #!/bin/bash |
24aab793 LP |
2 | set -e |
3 | TEST_DESCRIPTION="FailureAction= operation" | |
4 | ||
5 | . $TEST_BASE_DIR/test-functions | |
e24619fd | 6 | QEMU_TIMEOUT=600 |
24aab793 LP |
7 | |
8 | test_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] | |
20 | Description=Testsuite service | |
21 | ||
22 | [Service] | |
23 | ExecStart=/bin/bash -x /testsuite.sh | |
24 | Type=oneshot | |
24aab793 LP |
25 | EOF |
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 | ||
40 | do_test "$@" |