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