Skip to content

Commit

Permalink
fix(parse): update tests and suites lists parsing
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Costa <[email protected]>
  • Loading branch information
Diogo21Costa committed Jan 29, 2024
1 parent fa78884 commit 8e33027
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,23 @@ def deploy_test(platform):
list_suites = test_config['suites'].split()
list_tests = test_config['tests'].split()
BUILD_CMD += " --argstr platform " + test_config['platform']

if len(list_suites):
BUILD_CMD += " --argstr list_suites \""
for suit in list_suites:
BUILD_CMD += suit + " "
BUILD_CMD = BUILD_CMD[:-1] + "\""
for index, suit in enumerate(list_suites):
BUILD_CMD += suit
if index < len(list_suites) - 1:
BUILD_CMD += r"\ "
BUILD_CMD += "\""

if len(list_tests):
BUILD_CMD += " --argstr list_tests \""
for suit in list_tests:
BUILD_CMD += suit + " "
BUILD_CMD = BUILD_CMD[:-1] + "\""
for index, suit in list_tests:
BUILD_CMD += suit
if index < len(list_tests) - 1:
BUILD_CMD += r"\ "
BUILD_CMD += "\""


print(BUILD_CMD)
res = os.system(BUILD_CMD)
Expand Down

0 comments on commit 8e33027

Please sign in to comment.