Support running tests from any directory

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Frédéric Mangano-Tarumi 2020-02-29 01:01:38 +01:00 committed by Lukas Fleischer
parent e374a91feb
commit 90c0a361b5
11 changed files with 12 additions and 13 deletions

View file

@ -1,7 +1,6 @@
TEST_DIRECTORY="$(pwd)"
TOPLEVEL="$(cd .. && pwd)"
TOPLEVEL="$(cd "$(dirname "$0")/.." && pwd)"
. ./sharness.sh
. "$TOPLEVEL/test/sharness.sh"
# Configure python search path.
PYTHONPATH="$TOPLEVEL"