From b4871bdc3e0227227605935188581950dd49908e Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 2 Dec 2022 10:20:57 -0500 Subject: [PATCH] Fix manifest parsing --- pyperformance/_manifest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyperformance/_manifest.py b/pyperformance/_manifest.py index 72dc3ac9..f77f15fa 100644 --- a/pyperformance/_manifest.py +++ b/pyperformance/_manifest.py @@ -170,14 +170,12 @@ def _add_benchmark(self, spec, metafile, resolve, filename): def _add_group(self, name, entries): if name in self._byname: raise ValueError(f'a group and a benchmark have the same name ({name})') - if name == 'all': - raise ValueError('a group named "all" is not allowed ("all" is reserved for selecting the full set of declared benchmarks)') if entries is None: if name in self._raw_groups: return self._raw_groups[name] = None elif name in self._raw_groups and self._raw_groups[name] is not None: - raise ValueError(f'a group named {name} was already defined') + self._raw_groups[name].extend(list(entries) if entries else []) else: self._raw_groups[name] = list(entries) if entries else [] self._groups = None # Force re-resolution.