diff options
| author | Xusheng <xusheng@vector35.com> | 2021-02-18 11:24:28 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2021-02-18 11:24:28 +0800 |
| commit | 9f4c4a0a819786b5d08e2a25cd8be080a8acf980 (patch) | |
| tree | b16a8b37ed7e727356a822ce60597e1cd6553a2a | |
| parent | d9b1df165f9daad6a5229718ecd0ee50a5ef6bf1 (diff) | |
suppress reanalysis in the load old database unit test
| -rw-r--r-- | suite/testcommon.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/suite/testcommon.py b/suite/testcommon.py index fc936d59..43bf934e 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -1645,12 +1645,14 @@ class VerifyBuilder(Builder): if not os.path.exists(file_name): return False + binja.Settings().set_bool("analysis.database.suppressReanalysis", True) ret = None - with BinaryViewType.get_view_of_file(file_name) as bv: + with BinaryViewType.get_view_of_file_with_options(file_name) as bv: if bv is None: ret = False if bv.file.snapshot_data_applied_without_error: ret = True - + + binja.Settings().reset("analysis.database.suppressReanalysis") self.delete_package("binja_v1.2.1921_bin_ls.bndb") return ret |
