Browse Source

tests: Expect less accurate location info in 2.2.0.

* tests/guix-system.sh: Work around inaccurate location info in 2.2.0.
gn-latest-20200428
Ludovic Courtès 3 years ago
parent
commit
13159c68ef
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      tests/guix-system.sh

+ 8
- 1
tests/guix-system.sh View File

@@ -76,7 +76,14 @@ EOF
if guix system build "$tmpfile" -n 2> "$errorfile"
then false
else
grep "$tmpfile:9:.*[Uu]nbound variable.*GRUB-config" "$errorfile"
if test "`guile -c '(display (effective-version))'`" = 2.2
then
# FIXME: With Guile 2.2.0 the error is reported on line 4.
# See <http://bugs.gnu.org/26107>.
grep "$tmpfile:[49]:.*[Uu]nbound variable.*GRUB-config" "$errorfile"
else
grep "$tmpfile:9:.*[Uu]nbound variable.*GRUB-config" "$errorfile"
fi
fi

OS_BASE='


Loading…
Cancel
Save