From b1986efff802ef2dbda8f2fac522840ad431bcce Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Thu, 3 Mar 2022 18:26:35 -0500 Subject: [PATCH] Fix: test: babeltrace1 python bindings exposes `op_enum` as a string MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Note that `babeltrace2` is the "default" reader listed in the dependency section of the readme but `babeltrace` is the actual reader used by the test suite. Change-Id: I5b47ba1e37a2671560f51ac866a7a35095be2338 Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- tests/regression/kernel/validate_select_poll_epoll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regression/kernel/validate_select_poll_epoll.py b/tests/regression/kernel/validate_select_poll_epoll.py index b8d28a981..f82ea68d0 100755 --- a/tests/regression/kernel/validate_select_poll_epoll.py +++ b/tests/regression/kernel/validate_select_poll_epoll.py @@ -331,7 +331,7 @@ class Test1(TraceParser): # check that we have FD 0 waiting for EPOLLIN|EPOLLPRI and that # data.fd = 0 - if (epfd == self.epoll_wait_fd or epfd == self.epoll_pwait_fd) and 'EPOLL_CTL_ADD' in op_enum.labels and fd == 0 and \ + if (epfd == self.epoll_wait_fd or epfd == self.epoll_pwait_fd) and 'EPOLL_CTL_ADD' == op_enum and fd == 0 and \ _event["data_union"]["fd"] == 0 and \ _event["events"]["EPOLLIN"] == 1 and \ _event["events"]["EPOLLPRI"] == 1: -- 2.34.1