mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
style: Adjust test to not emit blank lines.
Previously this test would produce a file containing blank lines between inputs. * tests/style.scm ("input labels, modify-inputs and margin comment"): Remove trailing newlines in replacement strings of 'substitute*' expression.
This commit is contained in:
parent
5b273e7c77
commit
3eb3901d7f
1 changed files with 2 additions and 2 deletions
|
@ -355,9 +355,9 @@ (define file
|
||||||
|
|
||||||
(substitute* file
|
(substitute* file
|
||||||
((",gmp\\)(.*)$" _ rest)
|
((",gmp\\)(.*)$" _ rest)
|
||||||
(string-append ",gmp) ;margin comment\n" rest))
|
(string-append ",gmp) ;margin comment" rest))
|
||||||
((",acl\\)(.*)$" _ rest)
|
((",acl\\)(.*)$" _ rest)
|
||||||
(string-append ",acl) ;another one\n" rest)))
|
(string-append ",acl) ;another one" rest)))
|
||||||
|
|
||||||
(system* "guix" "style" "-L" directory "-S" "inputs"
|
(system* "guix" "style" "-L" directory "-S" "inputs"
|
||||||
"my-coreutils")
|
"my-coreutils")
|
||||||
|
|
Loading…
Reference in a new issue