summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-05-15 00:36:50 +0200
committerEli Schwartz <eschwartz93@gmail.com>2025-05-15 02:08:22 -0400
commit68c55b86110dd333206ed974fcd1f3780a83a86c (patch)
tree804eb6d533bd8df72a3e08e355eb48267caa0951
parent203078f396656ad3694689549203662a4913b0dd (diff)
downloadmeson-68c55b86110dd333206ed974fcd1f3780a83a86c.tar.gz
unittests: add minimal coverage of --buildtype=custom
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--unittests/platformagnostictests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/platformagnostictests.py b/unittests/platformagnostictests.py
index c1475c51e..75071d9da 100644
--- a/unittests/platformagnostictests.py
+++ b/unittests/platformagnostictests.py
@@ -203,10 +203,10 @@ class PlatformAgnosticTests(BasePlatformTests):
# Reconfigure of not empty builddir should work
self.new_builddir()
Path(self.builddir, 'dummy').touch()
- self.init(testdir, extra_args=['--reconfigure'])
+ self.init(testdir, extra_args=['--reconfigure', '--buildtype=custom'])
# Setup a valid builddir should update options but not reconfigure
- self.assertEqual(self.getconf('buildtype'), 'debug')
+ self.assertEqual(self.getconf('buildtype'), 'custom')
o = self.init(testdir, extra_args=['-Dbuildtype=release'])
self.assertIn('Directory already configured', o)
self.assertNotIn('The Meson build system', o)