tests: Use 'test -z' to check that a string equals zero.

master
Nikita Karetnikov 2013-09-24 00:36:51 +00:00
parent 4b2bc804d8
commit aad5af9f40
1 changed files with 1 additions and 1 deletions

View File

@ -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`" \