-
Notifications
You must be signed in to change notification settings - Fork 21
Added support for multiple arguments #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0e93439
to
139ae2f
Compare
Runner/run-test.sh
Outdated
|
||
if [ "$#" -eq 0 ]; then | ||
log "Usage: $0 [all | <testcase_name>]" | ||
echo "Usage:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit/UX: Please refactor the usage/help output
Right now we mix lines with several echos and print “Usage” twice. For CLI UX (and tooling), help should be a single, clean block printed to stderr, with a -h/--help path and clear exit codes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated as per comment to address clean block with help when -h/--help is given and added exit codes as suggested
510091c
to
91c9ec0
Compare
Runner/run-test.sh
Outdated
print_usage() { | ||
cat >&2 <<EOF | ||
Usage: | ||
$0 all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Runner/run-test.sh
Outdated
cat >&2 <<EOF | ||
Usage: | ||
$0 all | ||
$0 <testcase_name> [arg1 arg2 ...] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
This change provides greater flexibility by allowing users to provide specific parameters to individual testcases from run-test.sh Signed-off-by: Vamsee Narapareddi <[email protected]>
This change provides greater flexibility by allowing users to provide specific parameters to individual testcases from run-test.sh