From d100e336909c09e6cb8fe51e6c92488610634411 Mon Sep 17 00:00:00 2001 From: Oliver Kurz <okurz@suse.de> Date: Tue, 25 Jun 2024 17:07:53 +0200 Subject: [PATCH] WIP -- Draft idea for openQA wrapper helper to disable test timeout on call, WDYT? --- script/openqa-test-timeout-disable | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 script/openqa-test-timeout-disable diff --git a/script/openqa-test-timeout-disable b/script/openqa-test-timeout-disable new file mode 100755 index 00000000000..af9e885d286 --- /dev/null +++ b/script/openqa-test-timeout-disable @@ -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 $@