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 <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras
2023-03-06 09:14:35 -06:00
parent 7196dac02d
commit a1e2c4acc9
4 changed files with 0 additions and 20 deletions

View File

@@ -10,12 +10,6 @@ test_description='Test bidirectionality of remote-hg'
. ./test-lib.sh . ./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 if ! python -c 'import mercurial' > /dev/null 2>&1
then then
skip_all='skipping remote-hg tests; mercurial not available' skip_all='skipping remote-hg tests; mercurial not available'

View File

@@ -14,12 +14,6 @@ test_description='Test remote-hg output compared to hg-git'
export EXPECTED_DIR="$SHARNESS_TEST_DIRECTORY/expected" 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 if ! python -c 'import mercurial' > /dev/null 2>&1
then then
skip_all='skipping remote-hg tests; mercurial not available' skip_all='skipping remote-hg tests; mercurial not available'

View File

@@ -10,12 +10,6 @@ test_description='Test remote-hg'
. ./test-lib.sh . ./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 if ! python -c 'import mercurial' > /dev/null 2>&1
then then
skip_all='skipping remote-hg tests; mercurial not available' skip_all='skipping remote-hg tests; mercurial not available'

View File

@@ -3,8 +3,6 @@
: "${SHARNESS_TEST_SRCDIR:=$(cd "$(dirname "${BASH_SOURCE-$0}")" && pwd)}" : "${SHARNESS_TEST_SRCDIR:=$(cd "$(dirname "${BASH_SOURCE-$0}")" && pwd)}"
. "$SHARNESS_TEST_SRCDIR"/sharness.sh . "$SHARNESS_TEST_SRCDIR"/sharness.sh
test_set_prereq PYTHON
GIT_AUTHOR_EMAIL=author@example.com GIT_AUTHOR_EMAIL=author@example.com
GIT_AUTHOR_NAME='A U Thor' GIT_AUTHOR_NAME='A U Thor'
GIT_COMMITTER_EMAIL=committer@example.com GIT_COMMITTER_EMAIL=committer@example.com