[PATCH 2 of 3 cubicweb fix-autopkgtest] [pkg] Stop running unit tests from skeleton

Jérémy Bobbio jeremy.bobbio at irq7.fr
Tue Jul 9 13:26:56 CEST 2019


# HG changeset patch
# User Jérémy Bobbio <jeremy.bobbio at irq7.fr>
# Date 1560962710 -7200
#      Wed Jun 19 18:45:10 2019 +0200
# Node ID 4ddd311eff0949797b9301c5c98b3ea96d1e9f39
# Parent  90f48d5167d61268dfc48f160fc6195fa9bbf657
# EXP-Topic fix-autopkgtest
[pkg] Stop running unit tests from skeleton

The test files shipped as part as the skeleton for `cubeweb-ctl newcube` are
not meant to be run as part of our test suite!

diff -r 90f48d5167d6 -r 4ddd311eff09 debian/tests/unittest
--- a/debian/tests/unittest	Wed Jun 19 18:43:38 2019 +0200
+++ b/debian/tests/unittest	Wed Jun 19 18:45:10 2019 +0200
@@ -5,7 +5,7 @@
 
 ### Setup tests
 
-find cubicweb -type d -name 'test' | while read dir; do
+find cubicweb -type d -name 'test' -a '!' -wholename 'cubicweb/skeleton/*' | while read dir; do
 	mkdir -p "$AUTOPKGTEST_TMP"/$(dirname "$dir")
 	cp -r "$dir" "$AUTOPKGTEST_TMP/$dir"
 done


More information about the cubicweb-devel mailing list