From 36d36d85ab66b361396d941b6404fa2755da8be0 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 27 Sep 2019 08:29:17 +0200 Subject: [PATCH] coverage.sh: always run --help and --version tests as root --- coverage.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/coverage.sh b/coverage.sh index e0f8901..b4d96c4 100755 --- a/coverage.sh +++ b/coverage.sh @@ -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"