Tests: Stop draining LiveViewer when iterator is inactive
authorKienan Stewart <kstewart@efficios.com>
Thu, 10 Oct 2024 18:41:45 +0000 (18:41 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 24 Oct 2024 18:06:13 +0000 (14:06 -0400)
Change-Id: Ic67cea7c3fa57ed5c48bbab7d21d206a827852ad
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/lttngtest/environment.py

index c6dd0397a773e6bf263c1082456576f422b4dc9c..fe37cfa7c19f8ac97eecb901985370a7c66c1b0e 100644 (file)
@@ -140,6 +140,8 @@ class _LiveViewer:
         while True:
             try:
                 for msg in self._live_iterator:
+                    if type(msg) is bt2._MessageIteratorInactivityMessageConst:
+                        break
                     self._events.append(msg)
                 break
             except bt2.TryAgain as e:
This page took 0.029651 seconds and 4 git commands to generate.