Projet

Général

Profil

0001-test-nspawn-make-run-tests-idempotent-54189.patch

Benjamin Dauvergne, 21 mai 2021 14:11

Télécharger (1,07 ko)

Voir les différences:

Subject: [PATCH 1/4] test-nspawn: make run-tests idempotent (#54189)

Without that it's difficult to test it by running it multiple times.
 test-nspawn | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
test-nspawn
13 13
then
14 14
    apt update
15 15
    apt install -y wget ca-certificates gnupg2 git ansible postgresql sudo python python3
16
    adduser --disabled-password --gecos "" testuser
16
    id testuser || adduser --disabled-password --gecos "" testuser
17 17
    usermod -a -G sudo testuser
18
    echo 'testuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
18
    grep -q testuser /etc/sudoers || echo 'testuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
19 19
    chown -R testuser /opt/publik-devinst
20 20
    /usr/bin/wget https://deb.entrouvert.org/entrouvert.gpg
21 21
    apt-key add entrouvert.gpg
22
-