Skip to content
Snippets Groups Projects
Commit 2416ac5a authored by Lukas Stadler's avatar Lukas Stadler
Browse files

package testing: ignore differences coming from path names ("fastr" vs....

package testing: ignore differences coming from path names ("fastr" vs. "gnur") and compare only output files
parent 8b138de8
No related branches found
No related tags found
No related merge requests found
......@@ -313,8 +313,11 @@ def _get_test_outputs(rvm, pkg_name, test_info):
for f in files:
ext = os.path.splitext(f)[1]
# suppress .pdf's for now (we can't compare them)
ignore = ['.R', '.Rin', '.prev', '.bug', '.pdf', '.save']
if f == 'test_time' or ext in ignore:
# ignore = ['.R', '.Rin', '.prev', '.bug', '.pdf', '.save']
# if f == 'test_time' or ext in ignore:
# continue
included = ['.Rout', '.fail']
if f == 'test_time' or not ext in included:
continue
status = "OK"
if ext == '.fail':
......@@ -498,7 +501,13 @@ def _find_line(gnur_line, fastr_content, fastr_i):
fastr_i = fastr_i + 1
return -1
def _replace_engine_references(output):
for idx, val in enumerate(output):
output[idx] = val.replace('fastr', '<engine>').replace('gnur', '<engine>')
def _fuzzy_compare(gnur_content, fastr_content):
_replace_engine_references(gnur_content)
_replace_engine_references(fastr_content)
gnur_start = _find_start(gnur_content)
gnur_end = _find_end(gnur_content)
fastr_start = _find_start(fastr_content)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment