mirror of
https://github.com/frej/fast-export.git
synced 2026-02-07 21:59:02 +01:00
test: update default location of sharness
It's included as a module for a reason. Also, use "$0" so the tests can be run like `./t/main.t` (or any other directory). Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
2
t/main.t
2
t/main.t
@@ -5,7 +5,7 @@
|
||||
|
||||
test_description='Main tests'
|
||||
|
||||
. "${SHARNESS_TEST_SRCDIR-/usr/share/sharness}"/sharness.sh || exit 1
|
||||
. "${SHARNESS_TEST_SRCDIR-$(dirname "$0")/sharness}"/sharness.sh || exit 1
|
||||
|
||||
check() {
|
||||
echo "$3" > expected &&
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
test_description='Smoke test'
|
||||
|
||||
. "${SHARNESS_TEST_SRCDIR-/usr/share/sharness}"/sharness.sh || exit 1
|
||||
. "${SHARNESS_TEST_SRCDIR-$(dirname "$0")/sharness}"/sharness.sh || exit 1
|
||||
|
||||
check() {
|
||||
echo "$3" > expected &&
|
||||
|
||||
Reference in New Issue
Block a user