diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-19 11:43:34 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-12-27 13:55:52 +0100 |
commit | 4cfd1e638ce40df34fe6ac9b652ff58440d8df31 (patch) | |
tree | f9663910381fefc30c2db06a480daee5f97b0c45 /mesonbuild/mesonlib.py | |
parent | aa03c06ffb6ca4c932edf14a0731e28937c6c094 (diff) | |
download | meson-4cfd1e638ce40df34fe6ac9b652ff58440d8df31.zip meson-4cfd1e638ce40df34fe6ac9b652ff58440d8df31.tar.gz meson-4cfd1e638ce40df34fe6ac9b652ff58440d8df31.tar.bz2 |
mtest: add progress report
Add a progress report in the style of "yum". Every second the
report prints a different test among the ones that are running.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index e773144..f73778e 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -1548,6 +1548,15 @@ class OrderedSet(T.MutableSet[_T]): if value in self.__container: del self.__container[value] + def move_to_end(self, value: _T, last: bool = True) -> None: + # Mypy does not know about move_to_end, because it is not part of MutableMapping + self.__container.move_to_end(value, last) # type: ignore + + def pop(self, last: bool = True) -> _T: + # Mypy does not know about the last argument, because it is not part of MutableMapping + item, _ = self.__container.popitem(last) # type: ignore + return item + def update(self, iterable: T.Iterable[_T]) -> None: for item in iterable: self.__container[item] = None |