Bug 1431388 - Don't assert size of the resulting rewritten LCOV file, as with C++-only test suites it can be empty. r=me

--HG--
extra : rebase_source : 232a9430c58cd129baa100aa713d6153a9390fc6
This commit is contained in:
Marco Castelluccio 2018-01-31 22:05:24 +01:00
parent 65bf16222e
commit 583838a613

View File

@ -174,7 +174,6 @@ class CodeCoverageMixin(object):
jsvm_files = [os.path.join(self.jsvm_dir, e) for e in os.listdir(self.jsvm_dir)]
rewriter = LcovFileRewriter('chrome-map.json')
rewriter.rewrite_files(jsvm_files, 'jsvm_lcov_output.info', '')
assert os.path.getsize('jsvm_lcov_output.info') > 0
# Package JSVM coverage data.
file_path_jsvm = os.path.join(dirs['abs_blob_upload_dir'], 'code-coverage-jsvm.zip')