From 5353a870015d1daabe8d6de60780874c7c34012f Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Fri, 1 Aug 2025 20:30:53 -0600 Subject: [PATCH] t: allow execution from other dirs --- t/bidi.t | 2 +- t/hg-git.t | 2 +- t/main.t | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/t/bidi.t b/t/bidi.t index ebc0d88..72c803a 100755 --- a/t/bidi.t +++ b/t/bidi.t @@ -8,7 +8,7 @@ test_description='Test bidirectionality of remote-hg' -. ./test-lib.sh +. "$(dirname "$0")"/test-lib.sh # clone to a git repo git_clone () { diff --git a/t/hg-git.t b/t/hg-git.t index 6d7e782..b097047 100755 --- a/t/hg-git.t +++ b/t/hg-git.t @@ -10,7 +10,7 @@ test_description='Test remote-hg output compared to hg-git' -. ./test-lib.sh +. "$(dirname "$0")"/test-lib.sh export EXPECTED_DIR="$SHARNESS_TEST_DIRECTORY/expected" diff --git a/t/main.t b/t/main.t index 6da6a00..9c0fc86 100755 --- a/t/main.t +++ b/t/main.t @@ -8,7 +8,7 @@ test_description='Test remote-hg' -. ./test-lib.sh +. "$(dirname "$0")"/test-lib.sh check () { echo $3 > expected &&