mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-03 16:57:55 +01:00
gnu: hitch: Rewrite grep command to not use perl regexps.
* gnu/packages/web.scm (hitch)[arguments]: Rewrite grep command in a test to not use perl regexps.
This commit is contained in:
parent
e43cbeafd1
commit
5a462c0d3d
1 changed files with 8 additions and 0 deletions
|
@ -5958,6 +5958,14 @@ (define-public hitch
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:phases (modify-phases %standard-phases
|
||||||
(add-before 'check 'pre-check
|
(add-before 'check 'pre-check
|
||||||
(lambda _
|
(lambda _
|
||||||
|
;; Our grep is compiled without perl regexp support. So,
|
||||||
|
;; rewrite the grep command to not use it. \t tab
|
||||||
|
;; characters are supported only in perl regexps. So,
|
||||||
|
;; put in literal tabs using printf instead.
|
||||||
|
(substitute* "src/tests/test32-proxy-authority.sh"
|
||||||
|
(("grep -Pq") "grep -q")
|
||||||
|
(("extension:\\\\tdefault")
|
||||||
|
"extension:$(printf '\\011')default"))
|
||||||
;; Most tests attempts to access hitch-tls.org which is
|
;; Most tests attempts to access hitch-tls.org which is
|
||||||
;; unavailable in the build container. Run them against
|
;; unavailable in the build container. Run them against
|
||||||
;; a dummy local web server instead.
|
;; a dummy local web server instead.
|
||||||
|
|
Loading…
Reference in a new issue