Skip to content

Commit faabf0a

Browse files
bonzinieli-schwartz
authored andcommitted
unittests: add minimal coverage of --buildtype=custom
Signed-off-by: Paolo Bonzini <[email protected]> (cherry picked from commit 68c55b8)
1 parent a832cb5 commit faabf0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unittests/platformagnostictests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ def test_validate_dirs(self):
203203
# Reconfigure of not empty builddir should work
204204
self.new_builddir()
205205
Path(self.builddir, 'dummy').touch()
206-
self.init(testdir, extra_args=['--reconfigure'])
206+
self.init(testdir, extra_args=['--reconfigure', '--buildtype=custom'])
207207

208208
# Setup a valid builddir should update options but not reconfigure
209-
self.assertEqual(self.getconf('buildtype'), 'debug')
209+
self.assertEqual(self.getconf('buildtype'), 'custom')
210210
o = self.init(testdir, extra_args=['-Dbuildtype=release'])
211211
self.assertIn('Directory already configured', o)
212212
self.assertNotIn('The Meson build system', o)

0 commit comments

Comments
 (0)