Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Apr 8, 2019
1 parent 7919fd9 commit e83e2bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 6 additions & 0 deletions vunit/ghdl_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ def __init__(self, # pylint: disable=too-many-arguments
self._backend = backend
self._vhdl_standard = None

def get_vhdl_standard(self):
"""
Return VHDL standard version
"""
return self._vhdl_standard

@classmethod
def determine_backend(cls, prefix):
"""
Expand Down
15 changes: 9 additions & 6 deletions vunit/test_suites.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,16 @@ def run(self, output_path, read_output):

results = self._read_test_results(file_name=get_result_file_name(output_path))

try:
if self._simulator_if.get_vhdl_standard() == "2008" and not sim_ok:
return dict(map((lambda name: (name,FAILED)), results))
except:
pass

# Do not run post check unless all passed
for name in results:
if self._simulator_if._vhdl_standard == "2008" and not sim_ok:
results[name] = FAILED
if results[name] == PASSED:
continue
return results
for status in results.values():
if status != PASSED:
return results

if not self._config.call_post_check(output_path, read_output):
for name in self._test_cases:
Expand Down

0 comments on commit e83e2bc

Please sign in to comment.