From ff913b49072352604ce081378f015af1714e1bd2 Mon Sep 17 00:00:00 2001 From: Kevin Daudt Date: Mon, 27 Sep 2021 21:33:52 +0200 Subject: [PATCH] tests: generate and install keys abuild requires that a build key is present, so make sure a key is generated. --- tests/abuild.bats | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/abuild.bats b/tests/abuild.bats index bee1d4f..e34ca3e 100644 --- a/tests/abuild.bats +++ b/tests/abuild.bats @@ -11,6 +11,9 @@ setup() { export GIT_CONFIG_GLOBAL="$tmpdir"/gitconfig export APORTSDIR="$PWD"/testrepo export PATH="$PWD/../:$PATH" + export SUDO=doas + + abuild-keygen -ain >/dev/null 2>&1 mkdir -p "$tmpdir" "$WORKDIR" printf "[color]\n\tui = always\n" > "$GIT_CONFIG_GLOBAL"