Merge branch 'waf_utstr_signature' into 'master'

waf_unit_test: make sure test is rerun if ut_str changes

See merge request ita1024/waf!2302
This commit is contained in:
ita1024 2020-10-14 23:56:35 +00:00
commit 60405f7bc9
1 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,8 @@ def make_test(self):
tsk = self.create_task('utest', self.link_task.outputs)
if getattr(self, 'ut_str', None):
self.ut_run, lst = Task.compile_fun(self.ut_str, shell=getattr(self, 'ut_shell', False))
tsk.vars = lst + tsk.vars
tsk.env['UT_STR'] = self.ut_str
tsk.vars = lst + tsk.vars + ['UT_STR']
self.handle_ut_cwd('ut_cwd')