test: use generic python reference rather than python2

This commit is contained in:
Mark Nauwelaerts
2020-06-12 13:11:17 +02:00
parent dc91c58e1c
commit 28ed63b707
5 changed files with 7 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ then
test_done
fi
if ! python2 -c 'import mercurial' > /dev/null 2>&1
if ! python -c 'import mercurial' > /dev/null 2>&1
then
skip_all='skipping remote-hg tests; mercurial not available'
test_done

View File

@@ -17,7 +17,7 @@ then
test_done
fi
if ! python2 -c 'import mercurial' > /dev/null 2>&1
if ! python -c 'import mercurial' > /dev/null 2>&1
then
skip_all='skipping remote-hg tests; mercurial not available'
test_done

View File

@@ -17,16 +17,16 @@ then
test_done
fi
if ! python2 -c 'import mercurial' > /dev/null 2>&1
if ! python -c 'import mercurial' > /dev/null 2>&1
then
skip_all='skipping remote-hg tests; mercurial not available'
test_done
fi
if python2 -c 'import hggit' > /dev/null 2>&1
if python -c 'import hggit' > /dev/null 2>&1
then
hggit=hggit
elif python2 -c 'import hgext.git' > /dev/null 2>&1
elif python -c 'import hgext.git' > /dev/null 2>&1
then
hggit=hgext.git
else

View File

@@ -26,7 +26,7 @@ then
test_done
fi
if ! python2 -c 'import mercurial' > /dev/null 2>&1
if ! python -c 'import mercurial' > /dev/null 2>&1
then
skip_all='skipping remote-hg tests; mercurial not available'
test_done

View File

@@ -102,7 +102,7 @@ class Component
def build
Dir.chdir(dir) do
targets = %w[build_py build_ext].map { |e| [e, '--build-lib', "#{$builddir}/python"] }
run_cmd %w[python2 setup.py --quiet] + targets.flatten
run_cmd %w[python setup.py --quiet] + targets.flatten
end
end