mtest2make: do not repeat the same speed over and over
There are just two of them (slow and thorough; quick is simply the default). Avoid repeating them for as many times as there are tests. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Tested-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b1085f87ef
commit
5f9d28a2f8
1 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ import sys
|
|||
class Suite(object):
|
||||
def __init__(self):
|
||||
self.deps = set()
|
||||
self.speeds = []
|
||||
self.speeds = set()
|
||||
|
||||
def names(self, base):
|
||||
return [f'{base}-{speed}' for speed in self.speeds]
|
||||
|
|
@ -61,10 +61,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()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue