Update Returnal start/end time marking (#28)

- Update strategies in Returnal test harness for start/end time marking
- Minor changes to logging in DOTA 2 and Total War test harnesses
This commit is contained in:
derek-hirotsu
2023-12-12 11:59:00 -08:00
committed by GitHub
parent 6716bdb122
commit a79fb5d8c8
4 changed files with 26 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ def run_benchmark():
time.sleep(23)
# TODO -> Mark benchmark start time using video OCR by looking for a players name
if kerasService.wait_for_word(word="121", timeout=30, interval=0.1) is None:
logging.error("Didn't see the gold tick up to 121 to start the benchmark. Check settings and try again.")
logging.error("Didn't see the gold tick up to 121 at beginning of benchmark. Could not mark start time!")
sys.exit(1)
test_start_time = time.time()
@@ -97,7 +97,7 @@ def run_benchmark():
time.sleep(73) # sleep duration during gameplay
if kerasService.wait_for_word(word="430", timeout=30, interval=0.1) is None:
logging.error("Didn't see 430 Gold. Did the benchmark run?")
logging.error("Didn't see 430 Gold. Unable to mark end time. Check settings and try again.")
sys.exit(1)
test_end_time = time.time()
time.sleep(1)