From b42d7eaf234d324a3ddd14aabf8d2aa32eb553b1 Mon Sep 17 00:00:00 2001 From: nik-redhat Date: Wed, 25 Nov 2020 16:02:06 +0530 Subject: [TestFix]: Fixed the grep pattern for epoll thread count Modified the command from 'grep epoll_wait' to 'grep -i 'sys_epoll_wait' to address the changes in the epoll functionality for newer versions of Linux. Details of the changes can be found here: https://github.com/torvalds/linux/commit/791eb22eef0d077df4ddcf633ee6eac038f0431e Change-Id: I1671a74e538d20fe5dbf951fca6f8edabe0ead7f Signed-off-by: nik-redhat --- ...test_default_ping_timer_and_epoll_thread_count.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tests/functional') diff --git a/tests/functional/glusterd/test_default_ping_timer_and_epoll_thread_count.py b/tests/functional/glusterd/test_default_ping_timer_and_epoll_thread_count.py index 4127213b0..4ffe047d3 100644 --- a/tests/functional/glusterd/test_default_ping_timer_and_epoll_thread_count.py +++ b/tests/functional/glusterd/test_default_ping_timer_and_epoll_thread_count.py @@ -57,16 +57,16 @@ class TestPingTimerAndEpollThreadCountDefaultValue(GlusterBaseClass): # Shell Script to be run for epoll thread count script = """ - #!/bin/bash - function nepoll () - { - local pid=$1; - for i in $(ls /proc/$pid/task); - do - cat /proc/$pid/task/$i/stack | grep epoll_wait; - done - } - """ + #!/bin/bash + function nepoll () + { + local pid=$1; + for i in $(ls /proc/$pid/task); + do + cat /proc/$pid/task/$i/stack | grep -i 'sys_epoll_wait'; + done + } + """ # Execute the shell script cmd = "echo '{}' > test.sh;".format(script) -- cgit