From a1e2c4acc9eeb1a91b0eba10b2deba597f06e616 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Mon, 6 Mar 2023 09:14:35 -0600 Subject: [PATCH] test: remove pointless prereq checks The prereq check was necessary in upstream git, not here where it's a noop. Signed-off-by: Felipe Contreras --- test/bidi.t | 6 ------ test/hg-git.t | 6 ------ test/main.t | 6 ------ test/test-lib.sh | 2 -- 4 files changed, 20 deletions(-) diff --git a/test/bidi.t b/test/bidi.t index cdbe07f..4140b01 100755 --- a/test/bidi.t +++ b/test/bidi.t @@ -10,12 +10,6 @@ test_description='Test bidirectionality of remote-hg' . ./test-lib.sh -if ! test_have_prereq PYTHON -then - skip_all='skipping remote-hg tests; python not available' - test_done -fi - if ! python -c 'import mercurial' > /dev/null 2>&1 then skip_all='skipping remote-hg tests; mercurial not available' diff --git a/test/hg-git.t b/test/hg-git.t index f0aedd5..42545ab 100755 --- a/test/hg-git.t +++ b/test/hg-git.t @@ -14,12 +14,6 @@ test_description='Test remote-hg output compared to hg-git' export EXPECTED_DIR="$SHARNESS_TEST_DIRECTORY/expected" -if ! test_have_prereq PYTHON -then - skip_all='skipping remote-hg tests; python not available' - test_done -fi - if ! python -c 'import mercurial' > /dev/null 2>&1 then skip_all='skipping remote-hg tests; mercurial not available' diff --git a/test/main.t b/test/main.t index dccec35..9315aa1 100755 --- a/test/main.t +++ b/test/main.t @@ -10,12 +10,6 @@ test_description='Test remote-hg' . ./test-lib.sh -if ! test_have_prereq PYTHON -then - skip_all='skipping remote-hg tests; python not available' - test_done -fi - if ! python -c 'import mercurial' > /dev/null 2>&1 then skip_all='skipping remote-hg tests; mercurial not available' diff --git a/test/test-lib.sh b/test/test-lib.sh index b0d6580..3daee04 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -3,8 +3,6 @@ : "${SHARNESS_TEST_SRCDIR:=$(cd "$(dirname "${BASH_SOURCE-$0}")" && pwd)}" . "$SHARNESS_TEST_SRCDIR"/sharness.sh -test_set_prereq PYTHON - GIT_AUTHOR_EMAIL=author@example.com GIT_AUTHOR_NAME='A U Thor' GIT_COMMITTER_EMAIL=committer@example.com