Skip to content

Commit

Permalink
util/sim: Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Sep 21, 2023
1 parent 31445ba commit 12be8b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions util/sim/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,7 @@ def print_test_summary(failed_tests, args):
print(f'{colored("All tests passed!", "green")}')


def run_tests(args):

# Get tests from testlist
tests = get_tests(args.testlist)
def run_tests(tests, args):

# Create a process Pool
with multiprocessing.Pool(args.n_procs) as pool:
Expand Down Expand Up @@ -265,8 +262,9 @@ def completion_callback(return_value):

def main():
args = parse_args()
sys.exit(run_tests(args))
tests = get_tests(args.testlist)
return run_tests(tests, args)


if __name__ == '__main__':
main()
sys.exit(main())
4 changes: 2 additions & 2 deletions util/sim/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def parse_args():
help='The Snitch binary to be executed by the simulated Snitch hardware')
parser.add_argument(
'--symbols-bin',
help='An optional binary containing the I/O symbols. By default,'
'these are searched for in snitch_bin. This argument serves as an'
help='An optional binary containing the I/O symbols. By default, '
'these are searched for in snitch_bin. This argument serves as an '
'alternative.')
parser.add_argument(
'--log',
Expand Down

0 comments on commit 12be8b6

Please sign in to comment.