return self.scrub
class FunctionTestBuilder:
- def __init__(self, run_list, flags, scrubber_args):
+ def __init__(self, run_list, flags, scrubber_args, path):
self._verbose = flags.verbose
self._record_args = flags.function_signature
self._check_attributes = flags.check_attributes
self._scrubber_args = scrubber_args
+ self._path = path
# Strip double-quotes if input was read by UTC_ARGS
self._replace_value_regex = list(map(lambda x: x.strip('"'), flags.replace_value_regex))
self._func_dict = {}
def finish_and_get_func_dict(self):
for prefix in self._get_failed_prefixes():
- warn('Prefix %s had conflicting output from different RUN lines for all functions' % (prefix,))
+ warn('Prefix %s had conflicting output from different RUN lines for all functions in test %s' % (prefix,self._path,))
return self._func_dict
def func_order(self):
'function_signature': False,
'check_attributes': False,
'replace_value_regex': []}),
- scrubber_args = [])
+ scrubber_args = [],
+ path=test)
for prefixes, opt_args in prefix_list:
common.debug('Extracted opt cmd:', opt_basename, opt_args, file=sys.stderr)
builder = common.FunctionTestBuilder(
run_list=filecheck_run_list,
flags=ti.args,
- scrubber_args=[])
+ scrubber_args=[],
+ path=ti.path)
for prefixes, args, extra_commands, triple_in_cmd in run_list:
# Execute non-filechecked runline.
'function_signature': False,
'check_attributes': False,
'replace_value_regex': []}),
- scrubber_args=[ti.args])
+ scrubber_args=[ti.args],
+ path=ti.path)
for prefixes, llc_tool, llc_args, preprocess_cmd, triple_in_cmd, march_in_cmd in run_list:
common.debug('Extracted LLC cmd:', llc_tool, llc_args)
builder = common.FunctionTestBuilder(
run_list=prefix_list,
flags=ti.args,
- scrubber_args=[])
+ scrubber_args=[],
+ path=ti.path)
for prefixes, opt_args, preprocess_cmd in prefix_list:
common.debug('Extracted opt cmd: ' + opt_basename + ' ' + opt_args)