Skip to content

Commit

Permalink
WIP -- Draft idea for openQA wrapper helper to disable test timeout o…
Browse files Browse the repository at this point in the history
…n call, WDYT?
  • Loading branch information
okurz committed Jun 25, 2024
1 parent 71b04e2 commit d100e33
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions script/openqa-test-timeout-disable
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash -e

usage() {
cat << EOF
Usage: openqa-test-timeout-disable
Disable the openQA test timeout while calling another command.
Options:
-h, --help display this help
EOF
exit "$1"
}

opts=$(getopt -o h -l help -n "$0" -- "$@") || usage 1
eval set -- "$opts"
while true; do
case "$1" in
-h | --help) usage 0 ;;
--)
shift
break
;;
*) break ;;
esac
done

env OPENQA_TEST_TIMEOUT_DISABLE=1 $@

0 comments on commit d100e33

Please sign in to comment.