From e7c240a8d9420be5b01b1815c06dd58cecc7fec8 Mon Sep 17 00:00:00 2001 From: isslower <45580748+isslower@users.noreply.github.com> Date: Tue, 9 Jun 2026 12:51:13 +0800 Subject: [PATCH] Fix Python test helper arguments --- binding/python/bench_test.py | 4 ++-- binding/python/search_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/binding/python/bench_test.py b/binding/python/bench_test.py index 22abca6..28a4ba5 100644 --- a/binding/python/bench_test.py +++ b/binding/python/bench_test.py @@ -49,7 +49,7 @@ def run_bench_test(db_path: str, src_path: str, cache_policy: str): # create the searcher searcher = None try: - searcher = create_searcher(args.db, args.cache_policy) + searcher = create_searcher(db_path, cache_policy) except Exception as e: print("failed to create searcher: {}".format(str(e))) return @@ -121,4 +121,4 @@ if __name__ == "__main__": sys.exit() # run the search test - run_bench_test(args.db, args.src, args.cache_policy) \ No newline at end of file + run_bench_test(args.db, args.src, args.cache_policy) diff --git a/binding/python/search_test.py b/binding/python/search_test.py index 650780c..fab4f46 100644 --- a/binding/python/search_test.py +++ b/binding/python/search_test.py @@ -49,7 +49,7 @@ def run_search_test(db_path: str, cache_policy: str): # create the searcher searcher = None try: - searcher = create_searcher(args.db, args.cache_policy) + searcher = create_searcher(db_path, cache_policy) except Exception as e: print("failed to create searcher: {}".format(str(e))) return @@ -106,4 +106,4 @@ if __name__ == "__main__": sys.exit() # run the search test - run_search_test(args.db, args.cache_policy) \ No newline at end of file + run_search_test(args.db, args.cache_policy)