Skip to content

Commit

Permalink
test: add big V verbose option
Browse files Browse the repository at this point in the history
  • Loading branch information
Aflynn50 committed Oct 10, 2024
1 parent b883f61 commit ac3917d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/includes/verbose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ set_verbosity() {
set -eu
set -o pipefail
;;
11)
# You asked for it!
set -eux
set -o pipefail
;;
*)
echo "Unexpected verbose level" >&2
exit 1
Expand Down
8 changes: 7 additions & 1 deletion tests/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ show_help() {
echo ""
echo " $(green './main.sh -h') Display this help message"
echo " $(green './main.sh -v') Verbose and debug messages"
echo " $(green './main.sh -V') Verbose and debug messages with all commands printed"
echo " $(green './main.sh -A') Run all the test suites"
echo " $(green './main.sh -s') Skip tests using a comma seperated list"
echo " $(green './main.sh -a') Create an artifact file"
Expand Down Expand Up @@ -161,7 +162,7 @@ show_help() {
exit 1
}

while getopts "hH?vAs:a:x:rl:p:c:R:S:" opt; do
while getopts "hH?vAs:a:x:rl:p:c:R:S:V" opt; do
case "${opt}" in
h | \?)
show_help
Expand All @@ -174,6 +175,11 @@ while getopts "hH?vAs:a:x:rl:p:c:R:S:" opt; do
# shellcheck disable=SC2262
alias juju="juju --debug"
;;
V)
VERBOSE=11
# shellcheck disable=SC2262
alias juju="juju --debug"
;;
A)
RUN_ALL="true"
;;
Expand Down

0 comments on commit ac3917d

Please sign in to comment.