summaryrefslogtreecommitdiff
path: root/test/pkgbuild-check-licenses-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-09-30 12:06:49 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-09-30 12:07:44 -0400
commit505cf3ea3c09b390a57c715e47b65fea764d726d (patch)
tree1d6410c460e2df89fe64fe45e11df9dbbffbf647 /test/pkgbuild-check-licenses-test.sh
parent3473a80a47f2cadc729f3be05fa7485ae5b12e22 (diff)
test-common.sh: add an empty() routine to check if a file is empty, use it
Diffstat (limited to 'test/pkgbuild-check-licenses-test.sh')
-rw-r--r--test/pkgbuild-check-licenses-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pkgbuild-check-licenses-test.sh b/test/pkgbuild-check-licenses-test.sh
index 220ef6b..efb4875 100644
--- a/test/pkgbuild-check-licenses-test.sh
+++ b/test/pkgbuild-check-licenses-test.sh
@@ -22,6 +22,6 @@ it_displays_usage_text() {
stat=$?
[[ "$(sed 1q $tmpdir/stdout)" =~ Usage:.* ]]
- [[ -z "$(cat $tmpdir/stderr)" ]]
+ empty $tmpdir/stderr
[[ $stat == 0 ]]
}