[Lldb-commits] [lldb] 3bb4889 - [lldb/Test] Use self.assertIn in TestGdbRemoteTargetXmlPacket

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 30 11:48:43 PDT 2020


Author: Jonas Devlieghere
Date: 2020-07-30T11:48:35-07:00
New Revision: 3bb48898bc8af58884d4aa6279d4281938c07e76

URL: https://github.com/llvm/llvm-project/commit/3bb48898bc8af58884d4aa6279d4281938c07e76
DIFF: https://github.com/llvm/llvm-project/commit/3bb48898bc8af58884d4aa6279d4281938c07e76.diff

LOG: [lldb/Test] Use self.assertIn in TestGdbRemoteTargetXmlPacket

On the ARM buildbot the returned architecture is `armv8l` while
getArchitecture() just returns `arm`.

Added: 
    

Modified: 
    lldb/test/API/tools/lldb-server/registers-target-xml-reading/TestGdbRemoteTargetXmlPacket.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/tools/lldb-server/registers-target-xml-reading/TestGdbRemoteTargetXmlPacket.py b/lldb/test/API/tools/lldb-server/registers-target-xml-reading/TestGdbRemoteTargetXmlPacket.py
index 51f3d3595640..5ef074c1802c 100644
--- a/lldb/test/API/tools/lldb-server/registers-target-xml-reading/TestGdbRemoteTargetXmlPacket.py
+++ b/lldb/test/API/tools/lldb-server/registers-target-xml-reading/TestGdbRemoteTargetXmlPacket.py
@@ -43,7 +43,7 @@ def test_g_target_xml_returns_correct_data(self):
 
         architecture = root.find("architecture")
         self.assertIsNotNone(architecture)
-        self.assertEqual(architecture.text, self.getArchitecture())
+        self.assertIn(self.getArchitecture(), architecture.text)
 
         feature = root.find("feature")
         self.assertIsNotNone(feature)


        


More information about the lldb-commits mailing list