Simplify the assignment of configuration test execution to defines

This commit is contained in:
Thomas Nagy 2016-03-28 16:19:36 +02:00
parent 9fd2683095
commit 6089893e40
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 2 additions and 5 deletions

View File

@ -650,11 +650,8 @@ def post_check(self, *k, **kw):
# TODO simplify!
comment = kw.get('comment', '')
define_name = kw['define_name']
if 'header_name' in kw or 'function_name' in kw or 'type_name' in kw or 'fragment' in kw:
if kw['execute'] and kw.get('define_ret', None) and isinstance(is_success, str):
self.define(define_name, is_success, quote=kw.get('quote', 1), comment=comment)
else:
self.define_cond(define_name, is_success, comment=comment)
if kw['execute'] and kw.get('define_ret', None) and isinstance(is_success, str):
self.define(define_name, is_success, quote=kw.get('quote', 1), comment=comment)
else:
self.define_cond(define_name, is_success, comment=comment)