[Fuego] [PATCH 14/30] run-test: error out if no test is provided

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Mon Jun 4 07:17:48 UTC 2018


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 fc900ed..091be7e 100755
--- a/engine/scripts/ftc
+++ b/engine/scripts/ftc
@@ -3158,10 +3158,11 @@ def do_run_test(conf, options):
     board, options = get_board_arg("Run-test", conf, options)
     board_name = board.name
 
-    test_name = None
     if '-t' in options:
         # FIXTHIS: have run-test support wildcards in the test name
         test_name, options = get_test_arg("Run-test", conf, options)
+    else:
+        error_out("Run-test command requires a test name")
 
     if '-s' in options:
         try:
-- 
2.7.4




More information about the Fuego mailing list