From 2c576b5c1ce18d65e454e1ad0add909a5bb4b2db Mon Sep 17 00:00:00 2001 From: Dalton Bohning Date: Tue, 13 Aug 2024 18:33:37 +0000 Subject: [PATCH] use sudo -n in for pkill Skip-build: true Signed-off-by: Dalton Bohning --- src/tests/ftest/util/run_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/ftest/util/run_utils.py b/src/tests/ftest/util/run_utils.py index 9412aa80fc2..233566686fd 100644 --- a/src/tests/ftest/util/run_utils.py +++ b/src/tests/ftest/util/run_utils.py @@ -613,7 +613,7 @@ def stop_processes(log, hosts, pattern, verbose=True, timeout=60, exclude=None, log.debug( "Killing%s any processes on %s that match %s and then waiting %s seconds", step[0], result.passed_hosts, pattern_match, step[1]) - kill_command = f"sudo /usr/bin/pkill{step[0]} {pattern}" + kill_command = f"sudo -n /usr/bin/pkill{step[0]} {pattern}" run_remote(log, result.passed_hosts, kill_command, verbose, timeout) time.sleep(step[1]) result = run_remote(log, result.passed_hosts, command, verbose, timeout)