mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-electronics/pcb: Fix testsuite.
Do not count skipped tests as failed. Closes: https://bugs.gentoo.org/642366 Package-Manager: Portage-2.3.19, Repoman-2.3.6
This commit is contained in:
14
sci-electronics/pcb/files/pcb-4.0.2-tests.diff
Normal file
14
sci-electronics/pcb/files/pcb-4.0.2-tests.diff
Normal file
@@ -0,0 +1,14 @@
|
||||
# Do not count skipped tests as failed (bug #642366)
|
||||
--- tests/run_tests.sh.orig 2017-12-28 16:40:57.657366187 +0100
|
||||
+++ tests/run_tests.sh 2017-12-28 16:42:57.183392063 +0100
|
||||
@@ -842,8 +842,9 @@
|
||||
show_sep
|
||||
echo "Passed $pass, failed $fail, skipped $skip out of $tot tests."
|
||||
|
||||
+sum=`expr $skip + $pass`
|
||||
rc=0
|
||||
-if test $pass -ne $tot ; then
|
||||
+if test $sum -ne $tot ; then
|
||||
rc=1
|
||||
fi
|
||||
|
||||
@@ -77,6 +77,8 @@ src_prepare() {
|
||||
if ! use gcode; then
|
||||
sed -i '/^hid_gcode/d' tests/tests.list || die
|
||||
fi
|
||||
# fix wrong accounting of skipped and passed tests
|
||||
epatch "${FILESDIR}"/${P}-tests.diff
|
||||
fi
|
||||
|
||||
# fix bad syntax in Makefile.am and configure.ac before running eautoreconf
|
||||
|
||||
Reference in New Issue
Block a user