[arch-commits] Commit in grafana-zabbix/trunk (PKGBUILD)

Florian Pritz bluewind at archlinux.org
Sun Nov 8 13:15:27 UTC 2020


    Date: Sunday, November 8, 2020 @ 13:15:26
  Author: bluewind
Revision: 746558

Force timezone for tests

Modified:
  grafana-zabbix/trunk/PKGBUILD

----------+
 PKGBUILD |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-08 13:03:56 UTC (rev 746557)
+++ PKGBUILD	2020-11-08 13:15:26 UTC (rev 746558)
@@ -7,7 +7,7 @@
 url="https://github.com/alexanderzobnin/grafana-zabbix"
 license=('APACHE')
 depends=('grafana')
-makedepends=(yarn python2) # node-sass depends on node-gyp 3.8.0 which is still python2 https://github.com/sass/node-sass/issues/2877
+makedepends=(yarn python2 libfaketime) # node-sass depends on node-gyp 3.8.0 which is still python2 https://github.com/sass/node-sass/issues/2877
 source=("$pkgname-$pkgver.tar.gz::https://github.com/alexanderzobnin/grafana-zabbix/archive/v$pkgver.tar.gz")
 sha256sums=('8967e8fea38c85f3753a9108641088c5b176eedd2a3f06f9cf15b19fd6ab87f4')
 
@@ -20,7 +20,8 @@
 
 check() {
 	cd "$pkgname-$pkgver"
-	yarn test
+	# Force UTC timezone so that tests pass, even after a DST change
+	TZ=UTC yarn test
 }
 
 package() {


More information about the arch-commits mailing list