dev-perl/HTML-Object: Fix tests dependent on system timezone
authorKent Fredric <kentnl@gentoo.org>
Sat, 29 Apr 2017 09:53:15 +0000 (21:53 +1200)
committerKent Fredric <kentnl@gentoo.org>
Sat, 29 Apr 2017 09:53:15 +0000 (21:53 +1200)
Tests break when timezone is still configured to "Factory" TZ

Package-Manager: Portage-2.3.5, Repoman-2.3.2

dev-perl/HTML-Object/HTML-Object-2.29-r2.ebuild

index f08c63ca31f1620e69241643a9802c6c13b80cc3..c0c3de3f584ca037a73c0f8dfeb8c9d3cd1b617e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -22,6 +22,10 @@ SRC_TEST="do"
 
 S=${WORKDIR}/${MY_P}
 
+src_test() {
+       TZ=UTC perl-module_src_test
+}
+
 src_install() {
        perl-module_src_install
        if use examples; then