Commit f0cb7edb authored by Mark Janes's avatar Mark Janes

check for hardware substrings on perf components

Unlike test components, benchmarks are deployed to specific machines, eg
"bsw-01" instead of "bsw".
parent 1d071cc0
......@@ -11,7 +11,7 @@ class ManhattanTimeout:
self._options = bs.Options()
def GetDuration(self):
base_time = 20
if self._options.hardware == "bsw":
if "bsw" in self._options.hardware:
base_time = base_time * 2
if self._options.type == "daily":
base_time = base_time * 5
......
......@@ -12,7 +12,7 @@ class SynmarkTimeout:
limit = 30
if self._options.type == "daily":
limit *= 8
if self._options.hardware == "bsw":
if "bsw" in self._options.hardware:
limit *= 2
return limit
......
......@@ -11,7 +11,7 @@ class WarsowTimeout:
self._options = bs.Options()
def GetDuration(self):
base_time = 20
if self._options.hardware == "bsw":
if "bsw" in self._options.hardware:
base_time = base_time * 2
if self._options.type == "daily":
base_time = base_time * 5
......
......@@ -15,7 +15,7 @@ class XonoticTimeout:
self._options = bs.Options()
def GetDuration(self):
base_time = 20
if self._options.hardware == "bsw":
if "bsw" in self._options.hardware:
base_time = base_time * 2
if self._options.type == "daily":
base_time = base_time * 5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment