]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-26-SETENV/test.sh
test: drop redirection to tty in integration tests
[thirdparty/systemd.git] / test / TEST-26-SETENV / test.sh
1 #!/bin/bash
2 set -e
3 TEST_DESCRIPTION="test setenv"
4
5 . $TEST_BASE_DIR/test-functions
6
7 test_setup() {
8 create_empty_image_rootdir
9
10 (
11 LOG_LEVEL=5
12 eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
13
14 setup_basic_environment
15
16 # setup the testsuite service
17 cat >$initdir/etc/systemd/system/testsuite.service <<EOF
18 [Unit]
19 Description=Testsuite service
20
21 [Service]
22 ExecStart=/bin/bash -x /testsuite.sh
23 Type=oneshot
24 EOF
25 cp testsuite.sh $initdir/
26
27 setup_testsuite
28 )
29 setup_nspawn_root
30 }
31
32 do_test "$@"