[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/04: gnu: cook: Fix test failure.
From: |
guix-commits |
Subject: |
04/04: gnu: cook: Fix test failure. |
Date: |
Tue, 14 Apr 2020 16:49:04 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 2e3d5fdf055906a7de356d8f161cebaa3a40e691
Author: Marius Bakke <address@hidden>
AuthorDate: Tue Apr 14 18:05:57 2020 +0200
gnu: cook: Fix test failure.
* gnu/packages/cook.scm (cook)[arguments]: Override LC_ALL for one test.
---
gnu/packages/cook.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/cook.scm b/gnu/packages/cook.scm
index 16c288c..ba13709 100644
--- a/gnu/packages/cook.scm
+++ b/gnu/packages/cook.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 John Darrington <address@hidden>
;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2020 Marius Bakke <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -60,6 +61,13 @@
(substitute* "test/00/t0077a.sh"
(("ar qc") "ar qcU"))
+ ;; Guix builds have LC_ALL set to "en_US.utf8", which causes
+ ;; `date` to use a 12-hour clock instead of 24h, which in turn
+ ;; makes t0217a.sh fail because of unexpected date output.
+ (substitute* "test/02/t0217a.sh"
+ (("export TZ")
+ "export TZ\nLC_ALL=POSIX\nexport LC_ALL"))
+
(setenv "SH" (which "sh"))
#t)))))
(native-inputs `(("bison" ,bison)