summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/libredbdiff-test.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libredbdiff-test.sh b/test/libredbdiff-test.sh
index 8602b5c..ca0aad4 100644
--- a/test/libredbdiff-test.sh
+++ b/test/libredbdiff-test.sh
@@ -37,3 +37,13 @@ it_handles_packages_with_multiple_provides_implicit() {
empty $tmpdir/stderr
diff -w ../expected-implicit.txt $tmpdir/stdout
}
+
+it_fails_on_bad_repo_args() {
+ cd libredbdiff.d/statedir
+
+ libredbdiff -n bogus >$tmpdir/stdout 2>$tmpdir/stderr || stat=$?
+
+ [[ $stat != 0 ]]
+ empty $tmpdir/stdout
+ not empty $tmpdir/stderr
+}