Skip to content

Commit

Permalink
test: update default location of sharness
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
felipec committed Mar 27, 2023
1 parent a89033b commit 51db3b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t/main.t
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down
2 changes: 1 addition & 1 deletion t/smoke-test.t
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 51db3b4

Please sign in to comment.