diff options
author | Petr Vorel <pvorel@suse.cz> | 2018-09-06 19:49:33 +0200 |
---|---|---|
committer | Petr Vorel <pvorel@suse.cz> | 2018-09-13 14:21:44 +0200 |
commit | 750769de7a59f35a45d687c8e0e607ef2c989f3d (patch) | |
tree | 09f88b6f24d729468581580b07bb24c74b867a36 /testcases/lib | |
parent | d0ed418bc10be1e7f7517561d9a1811982830451 (diff) |
TST_RTNL_CHK: Add RTNETLINK error "Protocol not supported"
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Diffstat (limited to 'testcases/lib')
-rw-r--r-- | testcases/lib/tst_test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh index 0c388839f..faf3bd5d5 100644 --- a/testcases/lib/tst_test.sh +++ b/testcases/lib/tst_test.sh @@ -206,12 +206,13 @@ TST_RTNL_CHK() { local msg1="RTNETLINK answers: Function not implemented" local msg2="RTNETLINK answers: Operation not supported" + local msg3="RTNETLINK answers: Protocol not supported" local output="$($@ 2>&1 || echo 'LTP_ERR')" local msg echo "$output" | grep -q "LTP_ERR" || return 0 - for msg in "$msg1" "$msg2"; do + for msg in "$msg1" "$msg2" "$msg3"; do echo "$output" | grep -q "$msg" && tst_brk TCONF "'$@': $msg" done |