Check that regex has been set before iterating
@@ -4093,6 +4093,7 @@ class Chip:
if manifest_format:
keep.append(f'sc_manifest.{manifest_format}')
+ if self.valid('tool', tool, 'regex', step, index, 'default'):
for suffix in self.getkeys('tool', tool, 'regex', step, index):
keep.append(f'{step}.{suffix}')
@@ -4119,6 +4120,7 @@ class Chip:
sys.exit(1)
func(self)
+ if self.valid('tool', tool, 'regex', step, index, 'default'):
re_keys = self.getkeys('tool', tool, 'regex', step, index)
logfile = f'{step}.log'
if (
