Commit 1a2f956f authored by Natanael Copa's avatar Natanael Copa
Browse files

lbu: add test for lbu diff usage

parent d38b0864
......@@ -673,13 +673,13 @@ usage_diff() {
usage: $PROGRAM diff [<media>]
__EOF__
exit 1
exit $1
}
cmd_diff() {
local diff_opts=
LBU_MEDIA=${1:-"$LBU_MEDIA"}
[ -z "$LBU_MEDIA" ] && [ -z "$LBU_BACKUPDIR" ] && usage_diff
[ -z "$LBU_MEDIA" ] && [ -z "$LBU_BACKUPDIR" ] && usage_diff "1" >&2
local tmp
init_tmpdir tmp
mkdir -p "$tmp/a" "$tmp/b"
......
......@@ -10,7 +10,8 @@ init_tests \
lbu_ci_usage \
lbu_exclude_usage \
lbu_ex_usage \
lbu_delete_usage
lbu_delete_usage \
lbu_diff_usage
lbu_usage_body() {
test_usage lbu
......@@ -60,3 +61,7 @@ lbu_delete_usage_body() {
lbu delete -h
}
lbu_diff_usage_body() {
test_usage "lbu diff"
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment