From 67db6cfda9647c0f384337e9f8f6702c1abb3210 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sat, 29 Aug 2020 10:34:48 -0400 Subject: Update unit tests to allow for specifying settings. --- suite/testcommon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'suite/testcommon.py') diff --git a/suite/testcommon.py b/suite/testcommon.py index d81f263b..193ce5d8 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -106,12 +106,12 @@ class BinaryViewTestBuilder(Builder): - Function doc string used as 'on error' message - Should return: list of strings """ - def __init__(self, filename, imageBase=None): + def __init__(self, filename, options=None): self.filename = os.path.join(os.path.dirname(__file__), filename) - if imageBase is None: + if options is None: self.bv = BinaryViewType.get_view_of_file(self.filename) else: - self.bv = BinaryViewType.get_view_of_file_with_options(self.filename, options={'loader.imageBase' : imageBase}) + self.bv = BinaryViewType.get_view_of_file_with_options(self.filename, options=options) if self.bv is None: print("%s is not an executable format" % filename) return -- cgit v1.3.1