mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
Add in 5 minute timeout for comparison tests.
This commit is contained in:
@@ -50,7 +50,7 @@ class VolatilityTest:
|
||||
os.chdir(self.path)
|
||||
cmd = self.plugin_cmd(plugin, image)
|
||||
start_time = time.perf_counter()
|
||||
completed = subprocess.run(cmd, cwd = self.path, capture_output = True)
|
||||
completed = subprocess.run(cmd, cwd = self.path, capture_output = True, timeout = 300)
|
||||
end_time = time.perf_counter()
|
||||
total_time = end_time - start_time
|
||||
print(" Tested {} {} with image {}: {}".format(self.short_name, plugin.name, image.filepath, total_time))
|
||||
|
||||
Reference in New Issue
Block a user