tests/arp: when checking 'arp -d' check that entry is removed

Previous check trusted the "entry was deleted" output of the command.
Improved check does additional request to make sure that entry is not
returned.
This commit is contained in:
Gleb Smirnoff 2024-02-20 10:32:03 -08:00
parent 6a3e87e130
commit 28bc1822b7

View File

@ -78,6 +78,7 @@ arp_del_success_body() {
jexec ${jname} ping -c1 -t1 198.51.100.2
atf_check -o match:"198.51.100.2 \(198.51.100.2\) deleted" jexec ${jname} arp -nd 198.51.100.2
atf_check -s exit:1 -o match:"198.51.100.2 \(198.51.100.2\) -- no entry" jexec ${jname} arp -n 198.51.100.2
}
arp_del_success_cleanup() {