From: Jouni Malinen Date: Fri, 3 Nov 2023 20:59:33 +0000 (+0200) Subject: tests: Do not dump pending monitor events after connection X-Git-Tag: hostap_2_11~866 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69be335a5da166768c759c5bbab0f112a2db4f95;p=thirdparty%2Fhostap.git tests: Do not dump pending monitor events after connection connect_network() tried to make test log more readable with a dump_monitor() call at the end of the function. However, this could end up practically dropping an event that arrives more or less immediately after CTRL-EVENT-CONNECTED. This could happen with UML time travel, e.g., in suite_b_192_pmksa_caching_roam. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index ba372e523..d52536980 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -504,7 +504,6 @@ class WpaSupplicant: self.dump_monitor() self.select_network(id) self.wait_connected(timeout=timeout) - self.dump_monitor() def get_status(self, extra=None): if extra: