diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-06-18 12:14:32 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-06 14:44:31 -0700 |
| commit | a97fd83c8bfb428c5bc8fc82f08bc1180b4b67ca (patch) | |
| tree | da2030a5db56b16f510503e63deca96a1384c525 /unittests | |
| parent | bfe7445d87019ce5fbf5118473307404cea95d21 (diff) | |
| download | meson-a97fd83c8bfb428c5bc8fc82f08bc1180b4b67ca.tar.gz | |
unittests: do not use coredata.set_option
optstore is able to set buildtype correctly.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'unittests')
| -rw-r--r-- | unittests/datatests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/datatests.py b/unittests/datatests.py index 3fb6068d4..58b74188e 100644 --- a/unittests/datatests.py +++ b/unittests/datatests.py @@ -167,7 +167,7 @@ class DataTests(unittest.TestCase): debug = False else: raise RuntimeError(f'Invalid debug value {debug!r} in row:\n{m.group()}') - env.coredata.set_option(OptionKey('buildtype'), buildtype) + env.coredata.optstore.set_option(OptionKey('buildtype'), buildtype) self.assertEqual(env.coredata.optstore.get_value_for('buildtype'), buildtype) self.assertEqual(env.coredata.optstore.get_value_for('optimization'), opt) self.assertEqual(env.coredata.optstore.get_value_for('debug'), debug) |
