Add testuser to firejail.users file in network test
Reiner Herrmann
4 years ago
1 | 1 |
Restrictions: allow-stderr, flaky
|
2 | 2 |
Depends: @, expect, file, sudo, procps, xzdec, cpio, strace, csh, zsh, iputils-ping, wget, x11-common
|
3 | 3 |
|
4 | |
Tests: isolatoin-tests
|
5 | |
Restrictions: allow-stderr, breaks-testbed, isolation-machine, needs-root, flaky
|
|
4 |
Tests: isolation-tests
|
|
5 |
Restrictions: allow-stderr, isolation-machine, flaky
|
6 | 6 |
Depends: @, expect
|
7 | 7 |
|
8 | 8 |
Tests: application-tests
|
4 | 4 |
# copy tests to temporary directory, as current one might be read-only
|
5 | 5 |
cp -a test "$AUTOPKGTEST_TMP"
|
6 | 6 |
cd "$AUTOPKGTEST_TMP/test"
|
|
7 |
[ -z "$AUTOPKGTEST_NORMAL_USER" ] && AUTOPKGTEST_NORMAL_USER="nobody"
|
7 | 8 |
|
8 | 9 |
pushd network
|
9 | 10 |
bash -x ./configure
|
10 | |
runuser -u nobody -g nogroup -- bash -x ./network.sh | tee "$LOGFILE"
|
|
11 |
echo $AUTOPKGTEST_NORMAL_USER > /etc/firejail/firejail.users
|
|
12 |
runuser -u $AUTOPKGTEST_NORMAL_USER -g nogroup -- bash -x ./network.sh | tee "$LOGFILE"
|
11 | 13 |
popd
|
12 | 14 |
|
13 | 15 |
echo "======================================"
|