From 35feab2704cba93d8dab4417ca2e94fd27de3b38 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 2 May 2017 22:54:32 -0400 Subject: test: libredbdiff: Add another check for the option parser. --- test/libredbdiff-test.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 +} -- cgit v1.2.3-54-g00ecf