mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-11 10:37:09 +00:00
The run_afpackettests will be marked as passed regardless the return
value of those sub-tests in the script:
--------------------
running psock_tpacket test
--------------------
[FAIL]
selftests: run_afpackettests [PASS]
Fix this by changing the return value for each tests.
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
43 lines
703 B
Bash
Executable File
43 lines
703 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
if [ $(id -u) != 0 ]; then
|
|
echo $msg must be run as root >&2
|
|
exit 0
|
|
fi
|
|
|
|
ret=0
|
|
echo "--------------------"
|
|
echo "running psock_fanout test"
|
|
echo "--------------------"
|
|
./in_netns.sh ./psock_fanout
|
|
if [ $? -ne 0 ]; then
|
|
echo "[FAIL]"
|
|
ret=1
|
|
else
|
|
echo "[PASS]"
|
|
fi
|
|
|
|
echo "--------------------"
|
|
echo "running psock_tpacket test"
|
|
echo "--------------------"
|
|
./in_netns.sh ./psock_tpacket
|
|
if [ $? -ne 0 ]; then
|
|
echo "[FAIL]"
|
|
ret=1
|
|
else
|
|
echo "[PASS]"
|
|
fi
|
|
|
|
echo "--------------------"
|
|
echo "running txring_overwrite test"
|
|
echo "--------------------"
|
|
./in_netns.sh ./txring_overwrite
|
|
if [ $? -ne 0 ]; then
|
|
echo "[FAIL]"
|
|
ret=1
|
|
else
|
|
echo "[PASS]"
|
|
fi
|
|
exit $ret
|