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 43ff046
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 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))
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 43ff046

Please sign in to comment.