From: Jonathan Rajotte Date: Thu, 3 Mar 2022 23:26:35 +0000 (-0500) Subject: Fix: test: babeltrace1 python bindings exposes `op_enum` as a string X-Git-Tag: v2.13.5~17 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=b1986efff802ef2dbda8f2fac522840ad431bcce Fix: test: babeltrace1 python bindings exposes `op_enum` as a string 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 --- 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: