Skip to contentSkip to conversation

oeqa/selftest/bbtests: Update message lookup for test_git_unpack_nonetwork_fail

PATCH New [email protected] 1 participant 1 message Jul 7, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oeqa/selftest/bbtests: Update message lookup for test_git_unpack_nonetwork_fail

From: Alexandre Belloni <[email protected]>

bitbake's output changed, update the test

---
 meta/lib/oeqa/selftest/cases/bbtests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/selftest/cases/bbtests.py +1 -1
index cfac7afcf49a..b42bbb651da2 100644
@@ -350,4 +350,4 @@ INHERIT:remove = \"report-error\"
         self.write_config("DISTROOVERRIDES .= \":gitunpack-enable-recipe\"")
 
         result = bitbake('gitunpackoffline-fail -c fetch', ignore_status=True)
-        self.assertTrue("Recipe uses a floating tag/branch without a fixed SRCREV" in result.output, msg = "Recipe without PV set to SRCPV should have failed: %s" % result.output)
+        self.assertTrue(re.search("Recipe uses a floating tag/branch .* for repo .* without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev()", result.output), msg = "Recipe without PV set to SRCPV should have failed: %s" % result.output)
Signature · 1 line
2.25.1