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 <srangana@redhat.com>
This commit is contained in:
ShyamsundarR 2018-08-06 13:55:08 -04:00
parent b982e09f01
commit 0e821f9d10

View File

@ -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