1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

sysbench: fixed case where default timeout < max_time

This commit is contained in:
Sergei Trofimov 2015-09-08 18:00:17 +01:00
parent 37c49e22b3
commit f430187b11

View File

@ -85,6 +85,8 @@ class Sysbench(Workload):
self.num_threads = self.threads
if (self.max_requests is None) and (self.max_time is None):
self.max_time = 30
if self.max_time and (self.max_time + 10) > self.timeout:
self.timeout = self.max_time + 10
if self.test == 'fileio' and not self.file_test_mode:
self.logger.debug('Test is "fileio" and no file_test_mode specified -- using default.')
self.file_test_mode = 'seqwr'