waf_unit_test: make sure test is rerun if ut_str changes

This commit is contained in:
Federico Pellegrin 2020-10-14 04:57:19 +02:00
parent b2c81f8561
commit cccb443376
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')