tests: Use 'test -z' to check that a string equals zero.
This commit is contained in:
parent
4b2bc804d8
commit
aad5af9f40
|
@ -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`" \
|
||||
|
|
Loading…
Reference in New Issue