From 7120b604a3c61810e4520da6b1cfeeaaec92f23a Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 16 Jun 2015 03:03:38 +0200 Subject: Use the same interpreter when running scriptconfig. Use python3 if testsuite.py was run with python3, etc. --- testsuite.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'testsuite.py') diff --git a/testsuite.py b/testsuite.py index 20974d0..18af399 100644 --- a/testsuite.py +++ b/testsuite.py @@ -1913,7 +1913,8 @@ def test_all_no(conf): 'make scriptconfig', so kinda slow even in speedy mode.""" # TODO: Support speedy mode for running the script - shell("make scriptconfig SCRIPT=Kconfiglib/examples/allnoconfig.py") + shell("make scriptconfig SCRIPT=Kconfiglib/examples/allnoconfig.py " + "PYTHONCMD='{0}'".format(sys.executable)) shell("mv .config ._config") if speedy_mode: shell("scripts/kconfig/conf --allnoconfig Kconfig") @@ -1927,7 +1928,8 @@ def test_all_no_simpler(conf): 'make scriptconfig', so kinda slow even in speedy mode.""" # TODO: Support speedy mode for running the script - shell("make scriptconfig SCRIPT=Kconfiglib/examples/allnoconfig_simpler.py") + shell("make scriptconfig SCRIPT=Kconfiglib/examples/allnoconfig_simpler.py " + "PYTHONCMD='{0}'".format(sys.executable)) shell("mv .config ._config") if speedy_mode: shell("scripts/kconfig/conf --allnoconfig Kconfig") @@ -1941,7 +1943,8 @@ def test_all_yes(conf): 'make scriptconfig', so kinda slow even in speedy mode.""" # TODO: Support speedy mode for running the script - shell("make scriptconfig SCRIPT=Kconfiglib/examples/allyesconfig.py") + shell("make scriptconfig SCRIPT=Kconfiglib/examples/allyesconfig.py " + "PYTHONCMD='{0}'".format(sys.executable)) shell("mv .config ._config") if speedy_mode: shell("scripts/kconfig/conf --allyesconfig Kconfig") -- cgit v1.2.3