From 2a66ef8fba5172d33ff591b022cfbcce92da992b Mon Sep 17 00:00:00 2001 From: mr-tz Date: Wed, 17 Dec 2025 19:29:19 +0000 Subject: [PATCH] load resource for test sample --- tests/fixtures.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/fixtures.py b/tests/fixtures.py index d869896d..5cb86942 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -219,6 +219,12 @@ def get_idalib_extractor(path: Path): logger.debug("idalib: opening database...") idapro.enable_console_messages(False) + + # load resource if explicitly needed for test + load_resource = "" + if "Lab 12-04.exe_" in path.name: + load_resource = " -R" + # we set the primary and secondary Lumina servers to 0.0.0.0 to disable Lumina, # which sometimes provides bad names, including overwriting names from debug info. # @@ -230,7 +236,7 @@ def get_idalib_extractor(path: Path): # -1 - Generic errors (database already open, auto-analysis failed, etc.) # -2 - User cancelled operation ret = idapro.open_database( - str(path), run_auto_analysis=True, args="-Olumina:host=0.0.0.0 -Osecondary_lumina:host=0.0.0.0" + str(path), run_auto_analysis=True, args=f"-Olumina:host=0.0.0.0 -Osecondary_lumina:host=0.0.0.0{load_resource}" ) if ret not in (0, 1): raise RuntimeError("failed to analyze input file")