From: Paolo Bonzini <[email protected]> There are just three of them, avoid repeating them for as many times as there are tests.
Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: John Snow <[email protected]> --- scripts/mtest2make.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/mtest2make.py b/scripts/mtest2make.py index d32eef2f7f4..2b706f94234 100644 --- a/scripts/mtest2make.py +++ b/scripts/mtest2make.py @@ -14,7 +14,7 @@ class Suite(object): def __init__(self): self.deps = set() - self.speeds = ['quick'] + self.speeds = {'quick'} def names(self, base): return [base if speed == 'quick' else f'{base}-{speed}' for speed in self.speeds] @@ -62,10 +62,10 @@ def process_tests(test, targets, suites): suites[s].deps.update(deps) if s.endswith('-slow'): s = s[:-5] - suites[s].speeds.append('slow') + suites[s].speeds.add('slow') if s.endswith('-thorough'): s = s[:-9] - suites[s].speeds.append('thorough') + suites[s].speeds.add('thorough') def emit_prolog(suites, prefix): all_targets = ' '.join((f'{prefix}-{k}' for k in suites.keys())) -- 2.51.1
