[lldb/Test] Use self.assertIn in TestGdbRemoteTargetXmlPacket
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 30 Jul 2020 18:47:55 +0000 (11:47 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 30 Jul 2020 18:48:35 +0000 (11:48 -0700)
On the ARM buildbot the returned architecture is `armv8l` while
getArchitecture() just returns `arm`.

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

index 51f3d35..5ef074c 100644 (file)
@@ -43,7 +43,7 @@ class TestGdbRemoteTargetXmlPacket(gdbremote_testcase.GdbRemoteTestCaseBase):
 
         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)