OSDN Git Service

selftests/net: correct the return value for run_afpackettests
authorPo-Hsu Lin <po-hsu.lin@canonical.com>
Fri, 19 Apr 2019 11:01:13 +0000 (19:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Apr 2019 03:29:02 +0000 (20:29 -0700)
commit8c03557c3f25271e62e39154af66ebdd1b59c9ca
tree8622f5688d0792d1eb8f074037feda34f86a30ea
parentd1bcf2b6517788b148f166f63ad56811c11594fa
selftests/net: correct the return value for run_afpackettests

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>
tools/testing/selftests/net/run_afpackettests