print(colored("[HashTest] Deleted files 1 to 5.",'light_grey'))
self._drive_handle.set_read_only(True)
self._drive_handle.set_read_only(True)
detected_wear_levelling:bool=False
detected_wear_levelling:bool=False
prior_hash:str=None
prior_hash:str=None
...
@@ -50,13 +45,13 @@ class HashTest(DecisionTest):
...
@@ -50,13 +45,13 @@ class HashTest(DecisionTest):
else:
else:
print(colored(f"[HashTest] The threshold of 2 changes before measuring is not exceeded yet. Currently at iteration {iteration}. Continuing...","green"))
print(colored(f"[HashTest] The threshold of 2 changes before measuring is not exceeded yet. Currently at iteration {iteration}. Continuing...","green"))
prior_hash=current_hash
prior_hash=current_hash
ifiteration>=20:# 5 days of observation at max
ifiteration>=168:# 7 days of observation at max
print(colored(f"[HashTest] Reached iteration {iteration} (max iterations was set to 20). Stopping the test.","light_blue"))
print(colored(f"[HashTest] Reached iteration {iteration} (max iterations was set to 168). Stopping the test.","light_blue"))
detected_wear_levelling=False
detected_wear_levelling=False
break
break
print(colored("[HashTest] Waiting 6h until generating the next hash.","light_grey"))
print(colored("[HashTest] Waiting 1h until generating the next hash.","light_grey"))