Merge pull request #176 from myint/cd

Allow running "test_htmlreport.py" from any path
This commit is contained in:
Daniel Marjamäki 2013-10-07 10:10:56 -07:00
commit a46a05cffa
1 changed files with 3 additions and 2 deletions

View File

@ -99,8 +99,9 @@ def runCheck(source_filename=None, xml_version='1', xml_filename=None):
subprocess.check_call( subprocess.check_call(
[HTML_REPORT_BIN, [HTML_REPORT_BIN,
'--file=' + xml_filename, '--file=' + os.path.realpath(xml_filename),
'--report-dir=' + output_directory]) '--report-dir=' + os.path.realpath(output_directory)],
cwd=os.path.join(ROOT_DIR, 'htmlreport'))
with open(os.path.join(output_directory, 'index.html')) as index_file: with open(os.path.join(output_directory, 'index.html')) as index_file:
index_contents = index_file.read() index_contents = index_file.read()