coverage.sh: always run --help and --version tests as root

This commit is contained in:
Johannes 'josch' Schauer 2019-09-27 08:29:17 +02:00
parent 87c742eded
commit 36d36d85ab
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -213,10 +213,8 @@ $CMD --help | grep --quiet SYNOPSIS
END
if [ "$HAVE_QEMU" = "yes" ]; then
./run_qemu.sh
elif [ "$defaultmode" = "root" ]; then
./run_null.sh SUDO
else
./run_null.sh
./run_null.sh SUDO
fi
print_header "test --version"
@ -228,10 +226,8 @@ $CMD --version | egrep --quiet '^mmdebstrap [0-9](\.[0-9])+$'
END
if [ "$HAVE_QEMU" = "yes" ]; then
./run_qemu.sh
elif [ "$defaultmode" = "root" ]; then
./run_null.sh SUDO
else
./run_null.sh
./run_null.sh SUDO
fi
print_header "mode=root,variant=apt: create directory"