]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Use pgrep instead of ps
authorBenjamin Berg <benjamin.berg@intel.com>
Wed, 17 Jan 2024 18:02:31 +0000 (19:02 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 20 Jan 2024 07:35:39 +0000 (09:35 +0200)
commit71bcb97b8c96c2f2d3d981441af04b34fa7d9992
treeeb08b967f1aeb854c8cf6df336319cee543ee1d2
parent5ff6a2749b25ef5e3ee73f1e92b9a48faa50b2c6
tests: Use pgrep instead of ps

The ps command as shipped by busybox does not support the "command"
column. Change the code to use pgrep instead which will work fine in all
environments.

In addition, raise an exception if PID was not found since the test
would just hang with pid = 0.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
tests/hwsim/test_ap_eap.py
tests/hwsim/vm/inside.sh