[LNT] r306066 - Give testsuitedb a nice text version
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 22 15:40:07 PDT 2017
Author: cmatthews
Date: Thu Jun 22 17:40:07 2017
New Revision: 306066
URL: http://llvm.org/viewvc/llvm-project?rev=306066&view=rev
Log:
Give testsuitedb a nice text version
Sometimes we print these in a log. That is not very helpful because
you can't tell anything from the default repr. Replace with some
useful bits.
Modified:
lnt/trunk/lnt/server/db/testsuitedb.py
Modified: lnt/trunk/lnt/server/db/testsuitedb.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/testsuitedb.py?rev=306066&r1=306065&r2=306066&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/testsuitedb.py (original)
+++ lnt/trunk/lnt/server/db/testsuitedb.py Thu Jun 22 17:40:07 2017
@@ -1043,3 +1043,6 @@ test %r is misnamed for reporting under
def get_next_runs_on_machine(self, run, N):
return self.get_adjacent_runs_on_machine(run, N, direction = 1)
+
+ def __repr__(self):
+ return "{} (on {})".format(self.name, self.v4db.path)
More information about the llvm-commits
mailing list