1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

Make sure that Python tests exit with error code

This commit is contained in:
Nick Wellnhofer
2019-10-21 11:57:47 +02:00
parent 9d4bfeecbd
commit 47c8300023
5 changed files with 12 additions and 3 deletions

View File

@ -19,10 +19,15 @@ CLEANFILES = *.pyc core
if WITH_PYTHON
tests: $(TESTSPY)
-@(PYTHONPATH="`pwd`/..:`pwd`/../.libs:$(srcdir)/.."; \
if test "x$(LIBXML_SRC)" != "x" ; then PYTHONPATH="$$PYTHONPATH:$(LIBXML_SRC)/python:$(LIBXML_SRC)/python/.libs"; fi; \
@(PYTHONPATH="`pwd`/..:`pwd`/../.libs:$(srcdir)/.."; \
if test "x$(LIBXML_SRC)" != "x" ; then \
PYTHONPATH="$$PYTHONPATH:$(LIBXML_SRC)/python:$(LIBXML_SRC)/python/.libs"; \
fi; \
export PYTHONPATH; \
for test in $(TESTSPY) ; do echo "-- $$test" ; (cd $(srcdir) && $(PYTHON) $$test ); done)
for test in $(TESTSPY) ; do \
echo "-- $$test" ; \
(cd $(srcdir) && $(PYTHON) $$test ) || exit 1; \
done)
else
tests:
endif

View File

@ -27,3 +27,4 @@ if libxml2.debugMemory(1) == 0:
else:
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
libxml2.dumpMemory()
sys.exit(255)

View File

@ -54,3 +54,4 @@ if libxml2.debugMemory(1) == 0:
else:
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
libxml2.dumpMemory()
sys.exit(255)

View File

@ -87,3 +87,4 @@ if libxml2.debugMemory(1) == 0:
else:
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
libxml2.dumpMemory()
sys.exit(255)

View File

@ -64,3 +64,4 @@ if libxml2.debugMemory(1) == 0:
else:
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
libxml2.dumpMemory()
sys.exit(255)