tests: add project dir to PATH

abuild and abump call a few helpers that are expected to be available in
PATH. As abuild is not installed yet, they are not in the default PATH
locations.

Add the project root dir to $PATH to make sure these helpers can be found.
This commit is contained in:
Kevin Daudt 2021-09-27 21:30:54 +02:00
parent 12ba0a14a2
commit 789fca23db
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ setup() {
export WORKDIR="$tmpdir"/work
export GIT_CONFIG_GLOBAL="$tmpdir"/gitconfig
export APORTSDIR="$PWD"/testrepo
export PATH="$PWD/../:$PATH"
mkdir -p "$tmpdir" "$WORKDIR"
printf "[color]\n\tui = always\n" > "$GIT_CONFIG_GLOBAL"

View File

@ -13,6 +13,7 @@ setup() {
export APORTSDIR="$tmpdir"
export ABUILD_OPTS=""
export ABUILD_APK_INDEX_OPTS="--keys-dir=$ABUILD_USERDIR"
export PATH="$PWD/../:$PATH"
$ABUILD_KEYGEN --append -n