Commit 12ba0a14 authored by Kevin Daudt's avatar Kevin Daudt 💻
Browse files

tests: set APORTSDIR for abuild tests

If `APORTSDIR` is not set, abuild tries to find it. One way it does this
is by trying to look at the url for the git remote 'origin'. This fails
either if there is no git repository, or the git repository has no
remote called 'origin'.

Instead of having abuild guess the location, provide it by exporting
APORTSDIR.
parent d4af7cd4
......@@ -9,6 +9,7 @@ setup() {
export CLEANUP="srcdir bldroot pkgdir deps"
export WORKDIR="$tmpdir"/work
export GIT_CONFIG_GLOBAL="$tmpdir"/gitconfig
export APORTSDIR="$PWD"/testrepo
mkdir -p "$tmpdir" "$WORKDIR"
printf "[color]\n\tui = always\n" > "$GIT_CONFIG_GLOBAL"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment