[libvirt] [PATCH 1/2] build: Fix sc_prohibit_exit_in_tests syntax check

Jiri Denemark posted 2 patches 8 years, 10 months ago
[libvirt] [PATCH 1/2] build: Fix sc_prohibit_exit_in_tests syntax check
Posted by Jiri Denemark 8 years, 10 months ago
This check makes sense only in *.c files.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 cfg.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cfg.mk b/cfg.mk
index 36f70bfb9..ceca27f5d 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -808,7 +808,7 @@ sc_prohibit_semicolon_at_eol_in_python:
 # mymain() in test files should use return, not exit, for nicer output
 sc_prohibit_exit_in_tests:
 	@prohibit='\<exit *\('						\
-	in_vc_files='^tests/'						\
+	in_vc_files='^tests/.*\.c$$'					\
 	halt='use return, not exit(), in tests'				\
 	  $(_sc_search_regexp)
 
-- 
2.12.2

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list