Re: [PATCH 1 of 2] test-check-interface: do not expect bare "python" executable exists

2020-12-28 Thread Pulkit Goyal
On Sat, Dec 19, 2020 at 9:26 AM Yuya Nishihara  wrote:
>
> # HG changeset patch
> # User Yuya Nishihara 
> # Date 1608346918 -32400
> #  Sat Dec 19 12:01:58 2020 +0900
> # Node ID 5db45dfd6206490f8668559838cc4d4ca9ac
> # Parent  09beb9a133f168111fbef4a729f1c0cc2bfb87ce
> test-check-interface: do not expect bare "python" executable exists
>
> The test would crash if python executable had version suffix.

Queued the series, many thanks!
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


[PATCH 1 of 2] test-check-interface: do not expect bare "python" executable exists

2020-12-18 Thread Yuya Nishihara
# HG changeset patch
# User Yuya Nishihara 
# Date 1608346918 -32400
#  Sat Dec 19 12:01:58 2020 +0900
# Node ID 5db45dfd6206490f8668559838cc4d4ca9ac
# Parent  09beb9a133f168111fbef4a729f1c0cc2bfb87ce
test-check-interface: do not expect bare "python" executable exists

The test would crash if python executable had version suffix.

diff --git a/tests/test-check-interfaces.py b/tests/test-check-interfaces.py
--- a/tests/test-check-interfaces.py
+++ b/tests/test-check-interfaces.py
@@ -12,7 +12,7 @@ import sys
 
 # Only run if tests are run in a repo
 if subprocess.call(
-['python', '%s/hghave' % os.environ['TESTDIR'], 'test-repo']
+[sys.executable, '%s/hghave' % os.environ['TESTDIR'], 'test-repo']
 ):
 sys.exit(80)
 

___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel