diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-03-16 08:58:04 +0100 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-03-16 09:35:48 -0400 |
commit | 5cd7f5f8c5e374348e55b791caf01604c238f3e5 (patch) | |
tree | f2bbfd87618da572271ab2bf782665e2b86bb639 /run_unittests.py | |
parent | 32e49b5ff20bf2868330aa6985a65b3e9323ebd5 (diff) | |
download | meson-5cd7f5f8c5e374348e55b791caf01604c238f3e5.zip meson-5cd7f5f8c5e374348e55b791caf01604c238f3e5.tar.gz meson-5cd7f5f8c5e374348e55b791caf01604c238f3e5.tar.bz2 |
msetup: do not print bogus "Option ... is:" messages
get_non_matching_default_options is checking a string from
project_default_options against a validated value from
coredata.options.
Passing the string to validate_value ensures that the comparison
is sound; otherwise, "false" might be compared against False
and a bogus difference is printed.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index dd59ceb..72b497a 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4002,7 +4002,8 @@ class AllPlatformTests(BasePlatformTests): # Verify default values when passing no args that affect the # configuration, and as a bonus, test that --profile-self works. - self.init(testdir, extra_args=['--profile-self', '--fatal-meson-warnings']) + out = self.init(testdir, extra_args=['--profile-self', '--fatal-meson-warnings']) + self.assertNotIn('[default: true]', out) obj = mesonbuild.coredata.load(self.builddir) self.assertEqual(obj.options[OptionKey('default_library')].value, 'static') self.assertEqual(obj.options[OptionKey('warning_level')].value, '1') |