[node-patches] Change in ovirt-node[master]: build: Add simple doctest check

fabiand at fedoraproject.org fabiand at fedoraproject.org
Fri Dec 6 14:18:57 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: build: Add simple doctest check
......................................................................

build: Add simple doctest check

Only run doctests if the file seems to contain a doctest.

Change-Id: I3e8019b39a96361f4e3d48f3a195a738f0f056b4
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/Makefile.check
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/26/22126/1

diff --git a/src/Makefile.check b/src/Makefile.check
index e169956..abbad55 100644
--- a/src/Makefile.check
+++ b/src/Makefile.check
@@ -22,7 +22,7 @@
 	@echo Passed $@
 
 %.doctest:
-	python -m doctest "$*"
+	grep -q ">>>" "$*" && python -m doctest "$*" || :
 
 check-static-pep8: $(PYTHONSOURCES:%=%.pep8)
 	@echo Passed $@


-- 
To view, visit http://gerrit.ovirt.org/22126
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3e8019b39a96361f4e3d48f3a195a738f0f056b4
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list