Subject: bug#29356: 1 test-suite test fails

From: [email-masked] (Ludovic Courtès)
Date: Mon, 20 Nov 2017 10:23:46 +0100

Hi Martin,

Martin Castillo <[email-masked]> skribis:

> + guix system build t-guix-system-11155 -n
> + grep 't-guix-system-11155:3:2: .*module .*qemu.*not found' t-guix-system-error-11155
> + rm -f t-guix-system-11155 t-guix-system-error-11155 '/tmp/t-guix-system-11155/*'
> + rmdir /tmp/t-guix-system-11155
> ./test-env: line 1: 11154 Terminated              "/home/mcd/guix/pre-inst-env" "/home/mcd/guix/guix-daemon" --disable-chroot --substitute-urls="$GUIX_BINARY_SUBSTITUTE_URL"
> FAIL tests/guix-system.sh (exit status: 1)

The failing test here is this:

--8<---------------cut here---------------start------------->8---
cat > "$tmpfile" <<EOF
;; Line 1.
(use-modules (gnu))
  (use-package-modules qemu)
EOF

if guix system build "$tmpfile" -n 2> "$errorfile"
then false
else
    grep "$tmpfile:3:2: .*module .*qemu.*not found" "$errorfile"
    grep "Try.*use-package-modules virtualization" "$errorfile"
fi
--8<---------------cut here---------------end--------------->8---

Could it be that there are stale gnu/packages/qemu.{scm,go} files in the
working tree?

Thanks in advance,
Ludo’.