Commit d9bddff2 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: allow dummy simulators with no cmd

Useful for tracking dependencies etc and simplifies multi-NIC handling
parent d57b5bd2
...@@ -146,10 +146,16 @@ class ExperimentBaseRunner(object): ...@@ -146,10 +146,16 @@ class ExperimentBaseRunner(object):
if self.verbose: if self.verbose:
print('%s: starting %s' % (self.exp.name, name)) print('%s: starting %s' % (self.exp.name, name))
run_cmd = sim.run_cmd(self.env)
if run_cmd is None:
if self.verbose:
print('%s: started dummy %s' % (self.exp.name, name))
return
# run simulator # run simulator
exec = self.sim_executor(sim) exec = self.sim_executor(sim)
sc = exec.create_component(name, sc = exec.create_component(name,
shlex.split(sim.run_cmd(self.env)), verbose=self.verbose, shlex.split(run_cmd), verbose=self.verbose,
canfail=True) canfail=True)
await sc.start() await sc.start()
self.running.append((sim, sc)) self.running.append((sim, sc))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment