summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-06-16 03:03:38 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-06-16 03:05:01 +0200
commit7120b604a3c61810e4520da6b1cfeeaaec92f23a (patch)
tree48b8a065a1b0cf14cade8a2525917f8178d9f69a /testsuite.py
parent0103e4ee6d8abc290f81b19a3c1fb6d2105ccd8e (diff)
Use the same interpreter when running scriptconfig.
Use python3 if testsuite.py was run with python3, etc.
Diffstat (limited to 'testsuite.py')
-rw-r--r--testsuite.py9
1 files changed, 6 insertions, 3 deletions
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")