Skip to content

Commit

Permalink
cpuhotplug06.sh: use '-h' to identify top or htop
Browse files Browse the repository at this point in the history
'v' is invalid option for both top and htop in newer version.
Replace it with 'h' to make it work in earlier and current version.

Signed-off-by: Xiao Liang <xiliang@redhat.com>
  • Loading branch information
liangxiao1 committed Aug 27, 2024
1 parent 2b319e3 commit 1ae895b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if tst_virt_hyperv; then
tst_brkm TCONF "Microsoft Hyper-V detected, no support for CPU hotplug"
fi

if top -v | grep -q htop; then
if top -h | grep -q htop; then
tst_brkm TCONF "htop is used instead of top (workaround: alias top='/path/to/real/top')"
fi

Expand Down

0 comments on commit 1ae895b

Please sign in to comment.