From c16d3f5a2c956e27a398b16f09dc18ead2b27b05 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 21 Aug 2018 15:40:53 +0200 Subject: Fix header/minimal configuration ordering test Should test write_autoconf(), not write_config(). --- testsuite.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/testsuite.py b/testsuite.py index d9923cf..143f6c8 100644 --- a/testsuite.py +++ b/testsuite.py @@ -1764,20 +1764,21 @@ g c.load_config("Kconfiglib/tests/config_indented") verify_value("IGNOREME", "y") - # Symbol order should match definition order in headers + # Symbol order in headers and minimal configuration files should match + # definition order, like in .config files c = Kconfig("Kconfiglib/tests/Korder") - c.write_config(config_test_file, header="") + c.write_autoconf(config_test_file, header="") verify_file_contents(config_test_file, """ -CONFIG_O=0 -CONFIG_R=1 -CONFIG_D=2 -CONFIG_E=3 -CONFIG_R2=4 -CONFIG_I=5 -CONFIG_N=6 -CONFIG_G=7 +#define CONFIG_O 0 +#define CONFIG_R 1 +#define CONFIG_D 2 +#define CONFIG_E 3 +#define CONFIG_R2 4 +#define CONFIG_I 5 +#define CONFIG_N 6 +#define CONFIG_G 7 """[1:]) # Differs from defaults -- cgit v1.2.3