Skip to content

Commit

Permalink
simulate.py: Allow test-wise override of simulation binary
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Oct 24, 2023
1 parent 2a3f06a commit 6da117f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion util/sim/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,17 @@ def run_simulation(cmd, simulator, test, quiet=False):
def run_test(test, args):
# Extract args
simulator = args.simulator
sim_bin = args.sim_bin if args.sim_bin else SIMULATOR_BINS[simulator]
dry_run = args.dry_run
testlist = args.testlist
quiet = multiple_processes(args)

# Simulator binary can be overriden on the command-line or test-wise
sim_bin = SIMULATOR_BINS[simulator]
if args.sim_bin:
sim_bin = args.sim_bin
if 'sim_bin' in test:
sim_bin = test['sim_bin']

# Check if simulator is supported for this test
if 'simulators' in test:
if simulator not in test['simulators']:
Expand Down

0 comments on commit 6da117f

Please sign in to comment.