From 9f4c4a0a819786b5d08e2a25cd8be080a8acf980 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Thu, 18 Feb 2021 11:24:28 +0800 Subject: suppress reanalysis in the load old database unit test --- suite/testcommon.py | 6 ++++-- 1 file 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 -- cgit v1.3.1