Skip to content

Commit

Permalink
use sudo -n in for pkill
Browse files Browse the repository at this point in the history
Skip-build: true

Signed-off-by: Dalton Bohning <dalton.bohning@intel.com>
  • Loading branch information
daltonbohning committed Sep 5, 2024
1 parent ea60fc8 commit 2c576b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/ftest/util/run_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c576b5

Please sign in to comment.