]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
selftests/net: correct the return value for run_afpackettests
authorPo-Hsu Lin <po-hsu.lin@canonical.com>
Fri, 6 Dec 2019 12:07:00 +0000 (13:07 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:59 +0000 (14:21 -0300)
commit49943af70f1a8168283baceed2b95a42530c4749
treef246fef7085eac28c3bea045f1df438a977d4eee
parent02926ae1c593170299b083f2e232e63b91d8c4b4
selftests/net: correct the return value for run_afpackettests

BugLink: https://bugs.launchpad.net/bugs/1825778
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>
(backported from commit 8c03557c3f25271e62e39154af66ebdd1b59c9ca)
[PHLin: backported with the same logic]
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
tools/testing/selftests/net/run_afpackettests