From ea36fc2bd53d79c4c4ce6f8b05c2eb5af17b66ff Mon Sep 17 00:00:00 2001 From: derek-hirotsu <132305781+derek-hirotsu@users.noreply.github.com> Date: Tue, 21 Nov 2023 17:24:08 -0800 Subject: [PATCH] remove sleep from end of test (#81) * remove unnecessary sleep from end of test * lint to satisfy spellcheck --- atomic_heart/atomicheart.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/atomic_heart/atomicheart.py b/atomic_heart/atomicheart.py index 03c315b..f22c60d 100644 --- a/atomic_heart/atomicheart.py +++ b/atomic_heart/atomicheart.py @@ -33,7 +33,7 @@ STEAM_GAME_ID = 668580 VIDEO_PATH = os.path.join( get_app_install_location(STEAM_GAME_ID), "AtomicHeart", "Content", "Movies") -skippable = [ +intro_videos = [ os.path.join(VIDEO_PATH, "Launch_4k_60FPS_PS5.mp4"), os.path.join(VIDEO_PATH, "Launch_4k_60FPS_XboxXS.mp4"), os.path.join(VIDEO_PATH, "Launch_FHD_30FPS_PS4.mp4"), @@ -46,7 +46,7 @@ user.FAILSAFE = False def run_benchmark(): """Starts the benchmark""" - remove_files(skippable) + remove_files(intro_videos) exec_steam_run_command(STEAM_GAME_ID) setup_start_time = time.time() @@ -101,7 +101,6 @@ def run_benchmark(): sys.exit(1) logging.info("Wicked found. Ending Benchmark.") - time.sleep(5) test_end_time = time.time() elapsed_test_time = round(test_end_time - test_start_time, 2)