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 test_done
fi fi
if ! python2 -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'
test_done test_done

View File

@@ -17,7 +17,7 @@ then
test_done test_done
fi fi
if ! python2 -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'
test_done test_done

View File

@@ -17,16 +17,16 @@ then
test_done test_done
fi fi
if ! python2 -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'
test_done test_done
fi fi
if python2 -c 'import hggit' > /dev/null 2>&1 if python -c 'import hggit' > /dev/null 2>&1
then then
hggit=hggit hggit=hggit
elif python2 -c 'import hgext.git' > /dev/null 2>&1 elif python -c 'import hgext.git' > /dev/null 2>&1
then then
hggit=hgext.git hggit=hgext.git
else else

View File

@@ -26,7 +26,7 @@ then
test_done test_done
fi fi
if ! python2 -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'
test_done test_done

View File

@@ -102,7 +102,7 @@ class Component
def build def build
Dir.chdir(dir) do Dir.chdir(dir) do
targets = %w[build_py build_ext].map { |e| [e, '--build-lib', "#{$builddir}/python"] } 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
end end