Obtain run_build_cls from run_build/check parameters

This commit is contained in:
Thomas Nagy 2017-03-04 08:22:12 +01:00
parent e596b529d8
commit 512bbfd819
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 1 additions and 3 deletions

View File

@ -565,7 +565,7 @@ def run_build(self, *k, **kw):
if not os.path.exists(bdir):
os.makedirs(bdir)
cls_name = getattr(self, 'run_build_cls', 'build')
cls_name = kw.get('run_build_cls') or getattr(self, 'run_build_cls', 'build')
self.test_bld = bld = Context.create_context(cls_name, top_dir=dir, out_dir=bdir)
bld.init_dirs()
bld.progress_bar = 0
@ -636,5 +636,3 @@ def test(self, *k, **kw):
self.end_msg(self.ret_msg(kw['okmsg'], kw), **kw)
return ret