From bf588cb0949619464488f55fe26cfef3394b0058 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 3 Dec 2012 19:49:31 +0100 Subject: Use 'make alldefconfig' in test_config_absent(). Suggested by fpemud. --- kconfigtest.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'kconfigtest.py') diff --git a/kconfigtest.py b/kconfigtest.py index fd448f9..896bb60 100644 --- a/kconfigtest.py +++ b/kconfigtest.py @@ -21,6 +21,10 @@ import sys # instead. os.environ["KERNELVERSION"] = "2" +# Prevent accidental loading of configuration files by removing +# KCONFIG_ALLCONFIG from the environment +os.environ.pop("KCONFIG_ALLCONFIG", None) + # Number of arch/defconfig pairs tested so far nconfigs = 0 @@ -331,10 +335,7 @@ def test_call_all(conf): def test_config_absent(conf): """Test if kconfiglib generates the same configuration as 'conf' without a .config, for each architecture""" conf.write_config("._config") - - # Use an empty .config - shell("> .config") - shell("make kconfiglibtestconfig") + shell("make alldefconfig") def test_defconfig(conf): """Test if kconfiglib generates the same .config as conf for each architecture/defconfig pair (this takes two hours on a Core i7@2.67 GHz system)""" -- cgit v1.2.3