summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornik-redhat <nladha@redhat.com>2020-11-25 16:02:06 +0530
committerArthy Loganathan <aloganat@redhat.com>2020-11-27 05:24:05 +0000
commitb42d7eaf234d324a3ddd14aabf8d2aa32eb553b1 (patch)
treecb5d9f1ac35fa2da4150abc439e5cba34fa0ff94
parent5a6b4c0acd962223d2275e722f29d2aaf399e7f3 (diff)
[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 <nladha@redhat.com>
-rw-r--r--tests/functional/glusterd/test_default_ping_timer_and_epoll_thread_count.py20
1 files changed, 10 insertions, 10 deletions
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)