Skip to content

Commit

Permalink
Fixes issue #65
Browse files Browse the repository at this point in the history
  • Loading branch information
kraigher committed Jul 30, 2015
1 parent 5dc46a3 commit ca74c29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions vunit/test/unit/test_test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ def test_sim_options(self):
def test_fail_on_unknown_sim_option(self):
self.assertRaises(ValueError, self.cfg.set_sim_option, "unknown", "value")

def test_issue_65(self):
self.cfg.set_generic(name="name", value=1, scope=create_scope())
self.cfg.set_sim_option(name="vsim_extra_args", value="-quiet", scope=create_scope())

@staticmethod
def write_file(name, contents):
with open(name, "w") as fwrite:
Expand Down
2 changes: 1 addition & 1 deletion vunit/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def set_sim_option(self, name, value, scope=create_scope()):
name, self._known_options)
raise ValueError(name)

if scope not in self._generics:
if scope not in self._sim_options:
self._sim_options[scope] = {}
self._sim_options[scope][name] = value

Expand Down

0 comments on commit ca74c29

Please sign in to comment.