diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2022-06-16 16:50:41 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2022-06-16 23:57:40 +0200 |
| commit | 925a57c5d04553ff6c514867348e7d3c5c22ca66 (patch) | |
| tree | 1661da9add7c689b23613b553f8d08c221ce46e7 /tests/guix-shell-export-manifest.sh | |
| parent | 4231031b69f141639ffd7056bfe7ddf60e7c534a (diff) | |
shell: Fix '--export-manifest' for cached profiles and when '-p' is used.
Fixes <https://issues.guix.gnu.org/55521>.
* guix/scripts/shell.scm (export-manifest): When computing 'manifest',
honor the 'profile key.
* tests/guix-shell-export-manifest.sh: Add test.
Diffstat (limited to 'tests/guix-shell-export-manifest.sh')
| -rw-r--r-- | tests/guix-shell-export-manifest.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/guix-shell-export-manifest.sh b/tests/guix-shell-export-manifest.sh index 05429955b9a..6c42c40f3bf 100644 --- a/tests/guix-shell-export-manifest.sh +++ b/tests/guix-shell-export-manifest.sh | |||
| @@ -46,6 +46,17 @@ cat "$manifest.second" | |||
| 46 | 46 | ||
| 47 | cmp "$manifest" "$manifest.second" | 47 | cmp "$manifest" "$manifest.second" |
| 48 | 48 | ||
| 49 | # Manifest for a profile. | ||
| 50 | guix shell --bootstrap guile-bootstrap -r "$tmpdir/profile" -- \ | ||
| 51 | guile --version | ||
| 52 | test -x "$tmpdir/profile/bin/guile" | ||
| 53 | guix shell -p "$tmpdir/profile" --export-manifest > "$manifest.second" | ||
| 54 | guix shell --export-manifest guile-bootstrap > "$manifest" | ||
| 55 | cat "$manifest.second" | ||
| 56 | cmp "$manifest" "$manifest.second" | ||
| 57 | |||
| 58 | rm "$tmpdir/profile" | ||
| 59 | |||
| 49 | # Combining manifests. | 60 | # Combining manifests. |
| 50 | guix shell --export-manifest -m "$manifest" gash gash-utils \ | 61 | guix shell --export-manifest -m "$manifest" gash gash-utils \ |
| 51 | > "$manifest.second" | 62 | > "$manifest.second" |
