Commit bb867c57 authored by Natanael Copa's avatar Natanael Copa
Browse files

tests: fix test_usage to accept sub commands

so we can test things like `lbu commit`
parent cbf2f9e3
......@@ -19,16 +19,15 @@ atf_init_test_cases() {
}
test_usage() {
local prog="$1"
init_env
atf_check -s exit:0 \
-o match:"^usage: $prog" \
-o match:"^usage: $@" \
-e empty \
$prog -h
$@ -h
atf_check -s exit:1 \
-o empty \
-e match:"^usage: $prog" \
$prog -INVALID
-e match:"^usage: $@" \
$@ -INVALID
}
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