diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-10-17 11:16:33 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-17 22:53:26 +0100 |
commit | 6cd547b24896596d4e0fe57f26f553842c5560b5 (patch) | |
tree | 2d43aaac974819b19bfd32d0454cde510831692d | |
parent | 9bea6b39074296bb8d8719a3300636e316f19d1b (diff) | |
download | openembedded-core-6cd547b24896596d4e0fe57f26f553842c5560b5.tar.gz |
patchtest/selftest: fix command arguments
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>
-rwxr-xr-x | meta/lib/patchtest/selftest/selftest | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/patchtest/selftest/selftest b/meta/lib/patchtest/selftest/selftest index 79b1254248..006d1badf8 100755 --- a/meta/lib/patchtest/selftest/selftest +++ b/meta/lib/patchtest/selftest/selftest @@ -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 |