X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_string.py;h=cfdec1fdbac82195aca0fea3e91313947d80e995;hb=9a6dafd569db0d0b5dc9d7b5b34b17e3f411a9ee;hp=b44489e3038078cbe1eadb5e9b113c1c30c7cdfc;hpb=f70cead5eb928954908de48300cc7a9c88430c0f;p=vpp.git diff --git a/test/test_string.py b/test/test_string.py index b44489e3038..cfdec1fdbac 100644 --- a/test/test_string.py +++ b/test/test_string.py @@ -35,7 +35,7 @@ class TestString(VppTestCase): error = self.vapi.cli("test string " + name) if error.find("failed") != -1: self.logger.critical("FAILURE in the " + name + " test") - self.assertEqual(error.find("failed"), -1) + self.assertNotIn("failed", error) if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)