tests: generate and install keys

abuild requires that a build key is present, so make sure a key is
generated.
This commit is contained in:
Kevin Daudt 2021-09-27 21:33:52 +02:00
parent 789fca23db
commit ff913b4907
1 changed files with 3 additions and 0 deletions

View File

@ -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"