[Fuego] [nirrognas][fuego-core][next] ftc: assume local if no board is specified
Daniel Sangorrin
daniel.sangorrin at toshiba.co.jp
Fri Jul 12 01:40:59 UTC 2019
This is a small trick to execute tests locally in a more
natural way. For example:
$ ftc run-test -t Functional.hello_world
Instead of the more verbose
$ ftc run-test -b local -t Functional.hello_world
Note: you can achieve the same by defining FUEGO_BOARD
environment variable to "local", but defaulting to local
seems even easier.
Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
scripts/ftc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/ftc b/scripts/ftc
index 01c8e21..7e50b87 100755
--- a/scripts/ftc
+++ b/scripts/ftc
@@ -3804,7 +3804,7 @@ def do_run_test(conf, options):
global log, tail_fd
global server
- board_names, options = get_board_arg("run-test", conf, options, '!,am')
+ board_names, options = get_board_arg("run-test", conf, options, ',am')
if len(board_names)>1:
# use recursion to loop over multiple boards
@@ -3818,6 +3818,8 @@ def do_run_test(conf, options):
do_run_test(conf, recurse_options)
else:
board_name = board_names[0]
+ if not board_name:
+ board_name = "local"
test_dict = {}
--
2.17.1
More information about the Fuego
mailing list