[LNT] r291161 - Fix missing machine name
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 5 11:19:01 PST 2017
Author: cmatthews
Date: Thu Jan 5 13:19:00 2017
New Revision: 291161
URL: http://llvm.org/viewvc/llvm-project?rev=291161&view=rev
Log:
Fix missing machine name
For some reason, that does not happen on my machine, the machine name
is not set in some of these test cases. Try to force it by flushing to
the DB more.
Modified:
lnt/trunk/tests/server/db/blacklist.py
Modified: lnt/trunk/tests/server/db/blacklist.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/server/db/blacklist.py?rev=291161&r1=291160&r2=291161&view=diff
==============================================================================
--- lnt/trunk/tests/server/db/blacklist.py (original)
+++ lnt/trunk/tests/server/db/blacklist.py Thu Jan 5 13:19:00 2017
@@ -32,6 +32,7 @@ class BlacklistProcessingTest(unittest.T
machine = self.machine = ts_db.Machine("test-machine")
ts_db.add(machine)
+ ts_db.commit()
test = self.test = ts_db.Test("Foo")
test2 = self.test2 = ts_db.Test("SingleSource/Foo/Bar/baz")
@@ -60,7 +61,13 @@ class BlacklistProcessingTest(unittest.T
machine,
test4,
a_field)
-
+ ts_db.add(self.field_change1)
+ ts_db.add(self.field_change2)
+ ts_db.add(self.field_change3)
+ ts_db.add(self.field_change4)
+
+ ts_db.commit()
+
def test_blacklist(self):
"""Check we filter by benchmark name correctly."""
ts = self.ts_db
More information about the llvm-commits
mailing list