Skip to content

Commit

Permalink
Merge pull request os-autoinst#20782 from ricardobranco777/which
Browse files Browse the repository at this point in the history
console/ping: Use command instead of which to get full pathname
  • Loading branch information
ricardobranco777 authored Dec 11, 2024
2 parents 38ea653 + 2d8db46 commit 6a1a881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/console/ping.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub run {
$ping_group_range = script_output('sysctl net.ipv4.ping_group_range');

zypper_call('in iputils libcap-progs sudo');
$capability = script_output('getcap $(which ping)', proceed_on_failure => 1);
$capability = script_output('getcap $(command -v ping)', proceed_on_failure => 1);

record_info('KERNEL VERSION', script_output('uname -a'));
record_info('net.ipv4.ping_group_range', $ping_group_range);
Expand Down

0 comments on commit 6a1a881

Please sign in to comment.