summaryrefslogtreecommitdiff
path: root/test/aur-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/aur-test.sh')
-rw-r--r--test/aur-test.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/aur-test.sh b/test/aur-test.sh
index 1fbe659..8b175eb 100644
--- a/test/aur-test.sh
+++ b/test/aur-test.sh
@@ -16,15 +16,15 @@ it_displays_help() {
LANG=C aur -h >$tmpdir/stdout 2>$tmpdir/stderr
[[ "$(sed 1q $tmpdir/stdout)" =~ Usage:.* ]]
- [[ -z "$(cat $tmpdir/stderr)" ]]
+ empty $tmpdir/stderr
}
it_fails_with_0_args() {
aur >$tmpdir/stdout 2>$tmpdir/stderr || stat=$?
[[ $stat != 0 ]]
- [[ -z "$(cat $tmpdir/stdout)" ]]
- [[ -n "$(cat $tmpdir/stderr)" ]]
+ empty $tmpdir/stdout
+ ! empty $tmpdir/stderr
}
# TODO: Actually test