unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Mikhail Tsykalov <tsymsh@gmail.com>
To: 43727@debbugs.gnu.org
Subject: bug#43727: tests/guix-environment.sh is broken when SHELL=fish
Date: Wed, 30 Sep 2020 20:39:07 +0300	[thread overview]
Message-ID: <00f52b84-e8dc-d77a-07f4-026677edb911@gmail.com> (raw)

[-- 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)


                 reply	other threads:[~2020-09-30 17:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=00f52b84-e8dc-d77a-07f4-026677edb911@gmail.com \
    --to=tsymsh@gmail.com \
    --cc=43727@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).