summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorNikita Karetnikov <nikita@karetnikov.org>2013-09-24 00:36:51 +0000
committerNikita Karetnikov <nikita@karetnikov.org>2013-09-25 16:09:50 +0000
commitaad5af9f40951bac7c8822b754aa20946b2cb8a4 (patch)
tree4f1c694661ada2e73aa79fe3f41a78ad83263f5a /tests
parent4b2bc804d861ff5ba550dac0b56f1fe44f079847 (diff)
downloadguix-aad5af9f40951bac7c8822b754aa20946b2cb8a4.tar.gz
tests: Use 'test -z' to check that a string equals zero.
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-package.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/guix-package.sh b/tests/guix-package.sh
index 7130926404..524ff32f17 100644
--- a/tests/guix-package.sh
+++ b/tests/guix-package.sh
@@ -79,7 +79,7 @@ then
     # Search.
     test "`guix package -s "An example GNU package" | grep ^name:`" = \
         "name: hello"
-    test "`guix package -s "n0t4r341p4ck4g3"`" = ""
+    test -z "`guix package -s "n0t4r341p4ck4g3"`"
 
     # List generations.
     test "`guix package -p "$profile" -l | cut -f1 | grep guile | head -n1`" \