From 4e15a9d1ea1b6c9f5781728fe9f8b858b12ae02d Mon Sep 17 00:00:00 2001 From: Justus Mueller <justus.mueller@fau.de> Date: Wed, 5 Jun 2024 20:34:42 +0200 Subject: [PATCH] fix: End hash test if wear-levelling occurrs --- src/tests/hash_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/hash_test.py b/src/tests/hash_test.py index 516ccf6..87eb40b 100644 --- a/src/tests/hash_test.py +++ b/src/tests/hash_test.py @@ -73,6 +73,7 @@ class HashTest(DecisionTest): # hash changed print(colored("[HashTest] The drive hash changed.", "red")) detected_wear_levelling = True + break prior_hash = current_hash if iteration >= 120: # 5 days of observation at max print(colored(f"[HashTest] Reached iteration {iteration} (max iterations was set to 120 = 5 days). Stopping the test.", "light_blue")) -- GitLab