]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
patchtest/selftest: fix command arguments
authorTrevor Gamblin <tgamblin@baylibre.com>
Tue, 17 Oct 2023 15:16:33 +0000 (11:16 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Oct 2023 21:53:26 +0000 (22:53 +0100)
Changes to patchtest's command-line arguments to work with oe-core by
default do not match the selftest script's argument list. Explicitly use
the --testdir and --repodir flags in selftest so that it is compatible
them.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/patchtest/selftest/selftest

index 79b12542488791a075123409f778d21590d31634..006d1badf833ef7515c6b9b9de74cdfa0f5f5eee 100755 (executable)
@@ -37,7 +37,7 @@ def test(root, patch):
     res = True
     patchpath = os.path.abspath(os.path.join(root, patch))
     
-    cmd     = 'patchtest %s %s/tests --patch %s' % (repodir, topdir, patchpath)
+    cmd     = 'patchtest --repodir %s --testdir %s/tests --patch %s' % (repodir, topdir, patchpath)
     results = subprocess.check_output(cmd, stderr=subprocess.STDOUT, universal_newlines=True, shell=True)
 
     return results