unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#43727: tests/guix-environment.sh is broken when SHELL=fish
@ 2020-09-30 17:39 Mikhail Tsykalov
  0 siblings, 0 replies; only message in thread
From: Mikhail Tsykalov @ 2020-09-30 17:39 UTC (permalink / raw)
  To: 43727

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

Hi,

I'm on commit db194f714a8beb155c508c06e346c7c2322e7053. Running tests 
with fish as shell always results in failure at test 
tests/guix-environment.sh. Seems like problem is with difference in 
`set` output format.

`set` command in fish outputs environmental variables in format:
VAR1 VAL1
VAR2 VAL2

tests/guix-environment.sh expects format:
VAR1=VAL1
VAR2=VAL2

Thanks,
Mikhail




[-- Attachment #2: guix-environment.log --]
[-- Type: text/x-log, Size: 1661 bytes --]

+ set -e
+ guix environment --version
guix environment (GNU Guix) 1.0.1.22248-4dd77
Copyright (C) 2020 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
+ tmpdir=t-guix-environment-13081
+ gcroot=t-guix-environment-gc-root-13081
+ trap 'rm -r "$tmpdir"; rm -f "$gcroot"' EXIT
+ mkdir t-guix-environment-13081
+ export SHELL
+ guix environment --bootstrap --ad-hoc guile-bootstrap --pure --search-paths
accepted connection from pid 13097, user tsmish
+ guix environment --bootstrap --ad-hoc guile-bootstrap:out --pure --search-paths
accepted connection from pid 13108, user tsmish
+ grep -E '^export PATH=.*profile/bin' t-guix-environment-13081/a
export PATH="/home/tsmish/src/guix/test-tmp/store/32inxhc578la6zzjna1ic0x5156lyrfx-profile/bin"
++ wc -l
+ test 1 = 1
++ sed -r 's/^export PATH="(.*)"/\1/' t-guix-environment-13081/a
+ test -x /home/tsmish/src/guix/test-tmp/store/32inxhc578la6zzjna1ic0x5156lyrfx-profile/bin/guile
+ cmp t-guix-environment-13081/a t-guix-environment-13081/b
+ GUIX_TEST_ABC=1
+ GUIX_TEST_DEF=2
+ GUIX_TEST_XYZ=3
+ export GUIX_TEST_ABC GUIX_TEST_DEF GUIX_TEST_XYZ
+ guix environment --bootstrap --ad-hoc guile-bootstrap --pure '--preserve=^GUIX_TEST_A' '--preserve=^GUIX_TEST_D' -- /gnu/store/k6rqxabw4v4nr3k8g820hxnx2sg2sryj-fish-3.1.2/bin/fish -c set
accepted connection from pid 13124, user tsmish
+ grep '^PATH=' t-guix-environment-13081/a
+ rm -r t-guix-environment-13081
+ rm -f t-guix-environment-gc-root-13081
FAIL tests/guix-environment.sh (exit status: 1)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-30 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30 17:39 bug#43727: tests/guix-environment.sh is broken when SHELL=fish Mikhail Tsykalov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).