'''
import re
-from testlib import test_util as test
+from testlib import test_util
from testlib.configuration import constants
from testlib.helper import joinpath, diff_out_file
def instantiate_test(self, name_pfx):
name = '-'.join([name_pfx, self.__class__.__name__])
- return test.TestFunction(self._test,
+ return test_util.TestFunction(self._test,
name=name, fixtures=self.fixtures)
class MatchGoldStandard(Verifier):
ignore_regexes=self.ignore_regex,
logger=params.log)
if diff is not None:
- test.fail('Stdout did not match:\n%s\nSee %s for full results'
+ test_util.fail('Stdout did not match:\n%s\nSee %s for full results'
% (diff, tempdir))
def _generic_instance_warning(self, kwargs):
if parse_file(joinpath(tempdir,
constants.gem5_simulation_stderr)):
return # Success
- test.fail('Could not match regex.')
+ test_util.fail('Could not match regex.')
_re_type = type(re.compile(''))
def _iterable_regex(regex):