[Fuego] [PATCH 09/30] add-jobs: remove timeout options outside the try
Daniel Sangorrin
daniel.sangorrin at toshiba.co.jp
Mon Jun 4 07:17:43 UTC 2018
FIXTHIS: move to argparse in the close future
Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
engine/scripts/ftc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/engine/scripts/ftc b/engine/scripts/ftc
index 4ef790e..cf1af30 100755
--- a/engine/scripts/ftc
+++ b/engine/scripts/ftc
@@ -1487,9 +1487,10 @@ def do_add_jobs(conf, options):
if '-k' in options:
try:
timeout = options[options.index('-k') + 1]
- options.remove('-k')
except IndexError:
error_out('No timeout specified after -k')
+ options.remove('-k')
+ options.remove(timeout)
test_dict["timeout"] = timeout
if test_name:
--
2.7.4
More information about the Fuego
mailing list