Fix Python test helper arguments
This commit is contained in:
parent
d638015592
commit
e7c240a8d9
|
|
@ -49,7 +49,7 @@ def run_bench_test(db_path: str, src_path: str, cache_policy: str):
|
||||||
# create the searcher
|
# create the searcher
|
||||||
searcher = None
|
searcher = None
|
||||||
try:
|
try:
|
||||||
searcher = create_searcher(args.db, args.cache_policy)
|
searcher = create_searcher(db_path, cache_policy)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("failed to create searcher: {}".format(str(e)))
|
print("failed to create searcher: {}".format(str(e)))
|
||||||
return
|
return
|
||||||
|
|
@ -121,4 +121,4 @@ if __name__ == "__main__":
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
# run the search test
|
# run the search test
|
||||||
run_bench_test(args.db, args.src, args.cache_policy)
|
run_bench_test(args.db, args.src, args.cache_policy)
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ def run_search_test(db_path: str, cache_policy: str):
|
||||||
# create the searcher
|
# create the searcher
|
||||||
searcher = None
|
searcher = None
|
||||||
try:
|
try:
|
||||||
searcher = create_searcher(args.db, args.cache_policy)
|
searcher = create_searcher(db_path, cache_policy)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("failed to create searcher: {}".format(str(e)))
|
print("failed to create searcher: {}".format(str(e)))
|
||||||
return
|
return
|
||||||
|
|
@ -106,4 +106,4 @@ if __name__ == "__main__":
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
# run the search test
|
# run the search test
|
||||||
run_search_test(args.db, args.cache_policy)
|
run_search_test(args.db, args.cache_policy)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue