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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This check makes sense only in *.c files.

Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux