2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-29 13:30:32 +01:00

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

View File

@ -108,7 +108,8 @@ def make_test(self):
tsk = self.create_task('utest', self.link_task.outputs) tsk = self.create_task('utest', self.link_task.outputs)
if getattr(self, 'ut_str', None): if getattr(self, 'ut_str', None):
self.ut_run, lst = Task.compile_fun(self.ut_str, shell=getattr(self, 'ut_shell', False)) 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') self.handle_ut_cwd('ut_cwd')