Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
alpine-conf
Commits
bb867c57
Commit
bb867c57
authored
May 27, 2022
by
Natanael Copa
Browse files
tests: fix test_usage to accept sub commands
so we can test things like `lbu commit`
parent
cbf2f9e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_env.sh
View file @
bb867c57
...
...
@@ -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
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment