]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/TEST-39-EXECRELOAD/test.sh
test: drop redirection to tty in integration tests
[thirdparty/systemd.git] / test / TEST-39-EXECRELOAD / test.sh
CommitLineData
38d8a123
FS
1#!/bin/bash
2set -e
3TEST_DESCRIPTION="Test ExecReload= (PR #13098)"
4
5. $TEST_BASE_DIR/test-functions
6
7test_setup() {
8 create_empty_image_rootdir
9
10 # Create what will eventually be our root filesystem onto an overlay
11 (
12 LOG_LEVEL=5
13 eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
14
15 setup_basic_environment
16 dracut_install mktemp
17
18 # mask some services that we do not want to run in these tests
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
24 ln -fs /dev/null $initdir/etc/systemd/system/systemd-machined.service
25
26 # setup the testsuite service
27 cat >$initdir/etc/systemd/system/testsuite.service <<EOF
28[Unit]
29Description=Testsuite service
30
31[Service]
32ExecStart=/bin/bash -x /testsuite.sh
33Type=oneshot
38d8a123
FS
34EOF
35 cp testsuite.sh $initdir/
36
37 setup_testsuite
38 )
39 setup_nspawn_root
40}
41
42do_test "$@"