guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: Zsh: Patch some tests that began failing in 5.6.


From: Leo Famulari
Subject: 01/01: gnu: Zsh: Patch some tests that began failing in 5.6.
Date: Tue, 4 Sep 2018 18:39:03 -0400 (EDT)

lfam pushed a commit to branch master
in repository guix.

commit fcf4841c0ee16631e8330d797cf3788dac0eca05
Author: Leo Famulari <address@hidden>
Date:   Tue Sep 4 18:33:06 2018 -0400

    gnu: Zsh: Patch some tests that began failing in 5.6.
    
    * gnu/packages/shells.scm (zsh)[arguments]: Patch the tests rather than 
deleting
    them.
---
 gnu/packages/shells.scm | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index c364722..900c8ec 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -336,11 +336,19 @@ history mechanism, job control and a C-like syntax.")
                          (("command -pv") "command -v")
                          (("command -p") "command ")
                          (("'command' -p") "'command' "))
-                       ;; Several of these tests fail spuriously in the Guix
-                       ;; build environment due to assumptions about PATH and
-                       ;; the location of the test files.  It was easier to 
just
-                       ;; skip them than try to make them work.
-                       (delete-file "Test/A05execution.ztst")
+                       ;; This file is ISO-8859-1 encoded.
+                       (with-fluids ((%default-port-encoding #f))
+                         (substitute* "Test/A05execution.ztst"
+                           ;; Help it find `sh`
+                           (("PATH=/bin:\\$\\{ZTST_testdir\\}/command.tmp/ 
tstcmd-slashless")
+                            (string-append "PATH=/bin:"
+                                           (assoc-ref %build-inputs "bash") 
"/bin:"
+                                           "${ZTST_testdir}/command.tmp/ 
tstcmd-slashless"))
+                           ;; Help it find `echo`
+                           (("PATH=/bin:\\$\\{ZTST_testdir\\}/command.tmp 
tstcmd-arg")
+                            (string-append "PATH=/bin:"
+                                           (assoc-ref %build-inputs 
"coreutils") "/bin:"
+                                           
"PATH=/bin:${ZTST_testdir}/command.tmp tstcmd-arg"))))
                        #t)))))
     (native-inputs `(("autoconf" ,autoconf)))
     (inputs `(("ncurses" ,ncurses)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]