Skip to content

Commit

Permalink
Merge pull request #3545 from csordasmarton/fix_plist_to_html_test
Browse files Browse the repository at this point in the history
[test] Fix non-deterministic test in plist to html
  • Loading branch information
bruntib authored Dec 9, 2021
2 parents 57a6592 + c82ebd2 commit 100357d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ def __test_html_builder(self, proj: str) -> str:
report_to_html.convert(
file_path, reports, output_dir, html_builder)

self.assertTrue(os.path.exists(output_path))
html_file_exists = os.path.exists(output_path)
if reports:
self.assertTrue(html_file_exists)
else:
self.assertFalse(html_file_exists)

html_builder.create_index_html(output_dir)
html_builder.create_statistics_html(output_dir)
Expand Down

0 comments on commit 100357d

Please sign in to comment.