tests: Adjust 'guix build -S' test for source-less packages.

This is a followup to 8a54c0ec69.

* tests/guix-build.sh: Allow 'guix build -S' to succeed with source-less
packages.  Check that the result is the empty string.
This commit is contained in:
Ludovic Courtès 2016-10-03 15:24:21 +02:00
parent 2b4363891c
commit d223ac4acc
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -26,9 +26,9 @@ guix build --version
if guix build -e +; if guix build -e +;
then false; else true; fi then false; else true; fi
# Should fail because this is a source-less package. # Source-less packages are accepted; they just return nothing.
if guix build -e '(@ (gnu packages bootstrap) %bootstrap-glibc)' -S guix build -e '(@ (gnu packages bootstrap) %bootstrap-glibc)' -S
then false; else true; fi test "`guix build -e '(@ (gnu packages bootstrap) %bootstrap-glibc)' -S`" = ""
# Should pass. # Should pass.
guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' | \ guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' | \