diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-03 19:49:31 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-03 19:51:37 +0100 |
| commit | bf588cb0949619464488f55fe26cfef3394b0058 (patch) | |
| tree | 2c80f90f7e1ea7dfe6c508bf3e6543d514fc2da3 | |
| parent | 8eb6141771eb7d1e860ff70e3e103f7a896ebd78 (diff) | |
Use 'make alldefconfig' in test_config_absent().
Suggested by fpemud.
| -rw-r--r-- | kconfigtest.py | 9 |
1 files changed, 5 insertions, 4 deletions
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)""" |
