[LNT] r311962 - Do all comparisons as str, not unicode

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 17:17:08 PDT 2017


Author: cmatthews
Date: Mon Aug 28 17:17:08 2017
New Revision: 311962

URL: http://llvm.org/viewvc/llvm-project?rev=311962&view=rev
Log:
Do all comparisons as str, not unicode

Seems as though the DBs treat unicode a little differently, so downcast
to string so we look for test names that way.

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=311962&r1=311961&r2=311962&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/testsuitedb.py (original)
+++ lnt/trunk/lnt/server/db/testsuitedb.py Mon Aug 28 17:17:08 2017
@@ -981,7 +981,7 @@ class TestSuiteDB(object):
         profiles = dict()
         field_dict = dict([(f.name, f) for f in self.sample_fields])
         for test_data in tests_data:
-            name = test_data['name']
+            name = str(test_data['name'])
             test = test_cache.get(name)
             if test is None:
                 test = self.Test(test_data['name'])




More information about the llvm-commits mailing list