From 0e821f9d10939495181484588f200300b70dfcc2 Mon Sep 17 00:00:00 2001 From: ShyamsundarR Date: Mon, 6 Aug 2018 13:55:08 -0400 Subject: tests: Add timeout option to run-tests.sh Added a '-t' timeout option to run-tests.sh, to be able to set this to higher than the default 200 in case of lcov based tests, as those take more time due to instrumentations added by lcov. Change-Id: Ibaf70e881bfa94f35e822124bcf9849b309e7cc1 Updates: bz#1608564 Signed-off-by: ShyamsundarR --- run-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'run-tests.sh') diff --git a/run-tests.sh b/run-tests.sh index 3eb8e381247..c8eaf9b9683 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -413,7 +413,7 @@ function run_head_tests() } function parse_args () { - args=`getopt frcbkhHo "$@"` + args=`getopt frcbkhHo:t: "$@"` set -- $args while [ $# -gt 0 ]; do case "$1" in @@ -425,6 +425,7 @@ function parse_args () { -b) skip_bad_tests="no" ;; -k) skip_known_bugs="no" ;; -o) result_output="$2"; shift;; + -t) run_timeout="$2"; shift;; --) shift; break;; esac shift -- cgit