All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf] selftests/bpf: exit with error code if test failed
@ 2022-03-17  7:18 Hangbin Liu
  2022-03-18 15:05 ` Daniel Borkmann
  2022-03-21  2:41 ` [PATCHv2 bpf] selftests/bpf/test_lirc_mode2.sh: exit with proper code Hangbin Liu
  0 siblings, 2 replies; 4+ messages in thread
From: Hangbin Liu @ 2022-03-17  7:18 UTC (permalink / raw)
  To: netdev; +Cc: Sean Young, Alexei Starovoitov, Daniel Borkmann, Hangbin Liu

The test_lirc_mode2.sh test exit with 0 even test failed. Fix it by
exiting with an error code.

Fixes: 6bdd533cee9a ("bpf: add selftest for lirc_mode2 type program")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
---
 tools/testing/selftests/bpf/test_lirc_mode2.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/bpf/test_lirc_mode2.sh b/tools/testing/selftests/bpf/test_lirc_mode2.sh
index ec4e15948e40..420dc86362f5 100755
--- a/tools/testing/selftests/bpf/test_lirc_mode2.sh
+++ b/tools/testing/selftests/bpf/test_lirc_mode2.sh
@@ -36,3 +36,5 @@ then
 		echo -e ${GREEN}"PASS: $TYPE"${NC}
 	fi
 fi
+
+exit $ret
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-21 13:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-17  7:18 [PATCH bpf] selftests/bpf: exit with error code if test failed Hangbin Liu
2022-03-18 15:05 ` Daniel Borkmann
2022-03-21  2:41 ` [PATCHv2 bpf] selftests/bpf/test_lirc_mode2.sh: exit with proper code Hangbin Liu
2022-03-21 13:50   ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.