Strip leading/trailing whitespace in simulator info.
Active-HDL 11.1 gives a SIM_VERSION of " 11.1.260" (with leading space).
@@ -196,8 +196,8 @@ def _initialise_testbench(argv_):
from cocotb import simulator
global SIM_NAME, SIM_VERSION
- SIM_NAME = simulator.get_simulator_product()
- SIM_VERSION = simulator.get_simulator_version()
+ SIM_NAME = simulator.get_simulator_product().strip()
+ SIM_VERSION = simulator.get_simulator_version().strip()
cocotb.log.info("Running on {} version {}".format(SIM_NAME, SIM_VERSION))
