summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShyamsundarR <srangana@redhat.com>2018-08-06 13:55:08 -0400
committerShyamsundarR <srangana@redhat.com>2018-08-06 13:57:30 -0400
commit0e821f9d10939495181484588f200300b70dfcc2 (patch)
tree8d80bb5b053bdcba6b164d93e7574baf1792bca3
parentb982e09f01cf6423e8f5ae9601047fff13bb4f94 (diff)
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>
-rwxr-xr-xrun-tests.sh3
1 files changed, 2 insertions, 1 deletions
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