test.sh revision cd949ee7348982d90fb8bdf4a37128928b82925f
106ecd769d57116ad81efdea2c27557fba062138Ronny Chevalier# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
106ecd769d57116ad81efdea2c27557fba062138Ronny Chevalier# ex: ts=8 sw=4 sts=4 et filetype=sh
106ecd769d57116ad81efdea2c27557fba062138Ronny Chevalier [[ -f $TESTDIR/root/failed ]] && cp -a $TESTDIR/root/failed $TESTDIR
106ecd769d57116ad81efdea2c27557fba062138Ronny Chevalier cp -a $TESTDIR/root/var/log/journal $TESTDIR
106ecd769d57116ad81efdea2c27557fba062138Ronny Chevalier [[ -f $TESTDIR/failed ]] && cat $TESTDIR/failed
106ecd769d57116ad81efdea2c27557fba062138Ronny Chevalier # Create what will eventually be our root filesystem onto an overlay
106ecd769d57116ad81efdea2c27557fba062138Ronny Chevalier eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
106ecd769d57116ad81efdea2c27557fba062138Ronny Chevalier cat >$initdir/etc/systemd/system/testsuite.service <<EOF
106ecd769d57116ad81efdea2c27557fba062138Ronny ChevalierDescription=Testsuite service
106ecd769d57116ad81efdea2c27557fba062138Ronny ChevalierAfter=multi-user.target
106ecd769d57116ad81efdea2c27557fba062138Ronny ChevalierExecStart=/test-jobs.sh