diff options
| author | Brian Potchik <brian@vector35.com> | 2020-08-29 10:34:48 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2020-08-29 10:34:48 -0400 |
| commit | 67db6cfda9647c0f384337e9f8f6702c1abb3210 (patch) | |
| tree | cf049da689b8a68372040284a4f87445864e765d /suite/testcommon.py | |
| parent | 63c8851d2a2efc9ad2ae811eaeaf719cfbc06ac9 (diff) | |
Update unit tests to allow for specifying settings.
Diffstat (limited to 'suite/testcommon.py')
| -rw-r--r-- | suite/testcommon.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
