]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
devtool: selftest: Fix test_devtool_modify_git_crates_subpath bbappend check
authorAlex Kiernan <alex.kiernan@gmail.com>
Fri, 29 Dec 2023 11:44:27 +0000 (11:44 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 30 Dec 2023 11:00:05 +0000 (11:00 +0000)
The recipe being tested is in `testrecipe`, use that rather than the
literal `zvariant`.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/devtool.py

index d733dd15810675f8c324af98cc9a0cd0affcbfb6..cc28731402e7c639f7e6ef9c2fbc9aabd9001ee7 100644 (file)
@@ -958,7 +958,7 @@ class DevtoolModifyTests(DevtoolBase):
         result = runCmd('devtool modify %s -x %s' % (testrecipe, tempdir))
         self.assertExists(os.path.join(tempdir, 'Cargo.toml'), 'Extracted source could not be found')
         self.assertExists(os.path.join(self.workspacedir, 'conf', 'layer.conf'), 'Workspace directory not created. devtool output: %s' % result.output)
-        matches = glob.glob(os.path.join(self.workspacedir, 'appends', 'zvariant_*.bbappend'))
+        matches = glob.glob(os.path.join(self.workspacedir, 'appends', '%s_*.bbappend' % testrecipe))
         self.assertTrue(matches, 'bbappend not created')
         # Test devtool status
         result = runCmd('devtool status')