media-libs/harfbuzz: Fixed test failure.
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 3 May 2018 11:05:36 +0000 (13:05 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 3 May 2018 11:06:29 +0000 (13:06 +0200)
Closes: https://bugs.gentoo.org/654194
Package-Manager: Portage-2.3.31, Repoman-2.3.9

media-libs/harfbuzz/files/harfbuzz-1.7.6-test_fixup.patch [new file with mode: 0644]
media-libs/harfbuzz/harfbuzz-1.7.6.ebuild

diff --git a/media-libs/harfbuzz/files/harfbuzz-1.7.6-test_fixup.patch b/media-libs/harfbuzz/files/harfbuzz-1.7.6-test_fixup.patch
new file mode 100644 (file)
index 0000000..a918756
--- /dev/null
@@ -0,0 +1,22 @@
+From 93b03119da8674a3eddb7879857e9f17fa16fd2a Mon Sep 17 00:00:00 2001
+From: violet-sippial <38817272+violet-sippial@users.noreply.github.com>
+Date: Sat, 28 Apr 2018 20:29:13 +0200
+Subject: [PATCH] [subset] Do not compare ttx progress output in the tests
+
+Suppress progress messages of ttx. This avoids comparing this output to the reference file which lets the test fail.
+---
+ test/subset/run-tests.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/test/subset/run-tests.py b/test/subset/run-tests.py
+index 0b119fee6..1cd1a19f6 100755
+--- a/test/subset/run-tests.py
++++ b/test/subset/run-tests.py
+@@ -80,6 +80,7 @@ def run_test(test, should_check_ots):
+ def run_ttx(file):
+       print ("ttx %s" % file)
+       cli_args = ["ttx",
++                  "-q",
+                   "-o-",
+                   file]
+       return cmd(cli_args)
index 652f9591f8d5eeaac446cb68d3b7b6a4fa363722..47bad82a25493ec6447e3a50146f48c74d76be06 100644 (file)
@@ -47,6 +47,10 @@ if [[ ${PV} = 9999 ]] ; then
        "
 fi
 
+PATCHES=(
+       "${FILESDIR}/${P}-test_fixup.patch"
+)
+
 pkg_setup() {
        use test && python-any-r1_pkg_setup
        if ! use debug ; then