tests: Adjust 'guix build -S' test for source-less packages.
authorLudovic Courtès <ludo@gnu.org>
Mon, 3 Oct 2016 13:24:21 +0000 (15:24 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 3 Oct 2016 13:24:21 +0000 (15:24 +0200)
This is a followup to 8a54c0ec694ad6e22b155d167552b8fd0914e82d.

* tests/guix-build.sh: Allow 'guix build -S' to succeed with source-less
packages.  Check that the result is the empty string.

tests/guix-build.sh

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