From 9475a7d029a97d98dd1d436f14702e9c1bd5dc13 Mon Sep 17 00:00:00 2001 From: Steven Myint Date: Mon, 7 Oct 2013 07:33:13 -0700 Subject: [PATCH] Allow running "test_htmlreport.py" from any path This fixes a Travis CI failure. --- htmlreport/test_htmlreport.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htmlreport/test_htmlreport.py b/htmlreport/test_htmlreport.py index 6b71b9a38..0c18cd0bc 100755 --- a/htmlreport/test_htmlreport.py +++ b/htmlreport/test_htmlreport.py @@ -99,8 +99,9 @@ def runCheck(source_filename=None, xml_version='1', xml_filename=None): subprocess.check_call( [HTML_REPORT_BIN, - '--file=' + xml_filename, - '--report-dir=' + output_directory]) + '--file=' + os.path.realpath(xml_filename), + '--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: index_contents = index_file.read()