Updated testlog_parser.py to the latest version from the private repo.
This commit is contained in:
parent
843094a07f
commit
f003e29dc0
@ -100,34 +100,39 @@ class TestInfo(object):
|
|||||||
def dump(self, units="ms"):
|
def dump(self, units="ms"):
|
||||||
print "%s ->\t\033[1;31m%s\033[0m = \t%.2f%s" % (str(self), self.status, self.get("gmean", units), units)
|
print "%s ->\t\033[1;31m%s\033[0m = \t%.2f%s" % (str(self), self.status, self.get("gmean", units), units)
|
||||||
|
|
||||||
def shortName(self):
|
|
||||||
|
def getName(self):
|
||||||
pos = self.name.find("/")
|
pos = self.name.find("/")
|
||||||
if pos > 0:
|
if pos > 0:
|
||||||
name = self.name[:pos]
|
return self.name[:pos]
|
||||||
else:
|
return self.name
|
||||||
name = self.name
|
|
||||||
if self.fixture.endswith(name):
|
|
||||||
fixture = self.fixture[:-len(name)]
|
def getFixture(self):
|
||||||
|
if self.fixture.endswith(self.getName()):
|
||||||
|
fixture = self.fixture[:-len(self.getName())]
|
||||||
else:
|
else:
|
||||||
fixture = self.fixture
|
fixture = self.fixture
|
||||||
if fixture.endswith("_"):
|
if fixture.endswith("_"):
|
||||||
fixture = fixture[:-1]
|
fixture = fixture[:-1]
|
||||||
|
return fixture
|
||||||
|
|
||||||
|
|
||||||
|
def param(self):
|
||||||
|
return '::'.join(filter(None, [self.type_param, self.value_param]))
|
||||||
|
|
||||||
|
def shortName(self):
|
||||||
|
name = self.getName()
|
||||||
|
fixture = self.getFixture()
|
||||||
return '::'.join(filter(None, [name, fixture]))
|
return '::'.join(filter(None, [name, fixture]))
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
pos = self.name.find("/")
|
name = self.getName()
|
||||||
if pos > 0:
|
fixture = self.getFixture()
|
||||||
name = self.name[:pos]
|
|
||||||
else:
|
|
||||||
name = self.name
|
|
||||||
if self.fixture.endswith(name):
|
|
||||||
fixture = self.fixture[:-len(name)]
|
|
||||||
else:
|
|
||||||
fixture = self.fixture
|
|
||||||
if fixture.endswith("_"):
|
|
||||||
fixture = fixture[:-1]
|
|
||||||
return '::'.join(filter(None, [name, fixture, self.type_param, self.value_param]))
|
return '::'.join(filter(None, [name, fixture, self.type_param, self.value_param]))
|
||||||
|
|
||||||
|
|
||||||
def __cmp__(self, other):
|
def __cmp__(self, other):
|
||||||
r = cmp(self.fixture, other.fixture);
|
r = cmp(self.fixture, other.fixture);
|
||||||
if r != 0:
|
if r != 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user