Skip to content

Commit

Permalink
fix test_artificial_elaborate_only
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Apr 8, 2019
1 parent c6ee833 commit cdb0391
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions vunit/test/acceptance/test_artificial.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,12 @@ def test_artificial(self):

def test_artificial_elaborate_only(self):
self.check(self.artificial_run_vhdl,
exit_code=1,
exit_code=0,
args=["--elaborate"])

elab_expected_report = []
for status, name in EXPECTED_REPORT:
if name in ("lib.tb_elab_fail.all",):
status = "failed"
else:
status = "passed"
elab_expected_report.append((status, name))
for _, name in EXPECTED_REPORT:
elab_expected_report.append(("passed", name))

check_report(self.report_file, elab_expected_report)

Expand All @@ -61,11 +57,11 @@ def test_artificial_elaborate_only(self):
("passed", "lib.tb_pass.all")])

self.check(self.artificial_run_vhdl,
exit_code=1,
exit_code=0,
clean=False,
args=["--elaborate", "lib.tb_elab_fail.all"])
check_report(self.report_file, [
("failed", "lib.tb_elab_fail.all")])
("passed", "lib.tb_elab_fail.all")])

def _test_artificial(self, args=None):
"""
Expand Down

0 comments on commit cdb0391

Please sign in to comment.