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:30 +0100 |
commit | 104decd489999edce594d15553a7073f2f39ae7b (patch) | |
tree | 38b8e3c9e58052ac48499f438ededec8c6a55d99 /meta/lib/patchtest | |
parent | b5a87b5f984626106fea2c5a71319e76ad37fbc3 (diff) | |
download | poky-104decd489999edce594d15553a7073f2f39ae7b.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.
(From OE-Core rev: 6cd547b24896596d4e0fe57f26f553842c5560b5)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/patchtest')
-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): | |||
37 | res = True | 37 | res = True |
38 | patchpath = os.path.abspath(os.path.join(root, patch)) | 38 | patchpath = os.path.abspath(os.path.join(root, patch)) |
39 | 39 | ||
40 | cmd = 'patchtest %s %s/tests --patch %s' % (repodir, topdir, patchpath) | 40 | cmd = 'patchtest --repodir %s --testdir %s/tests --patch %s' % (repodir, topdir, patchpath) |
41 | results = subprocess.check_output(cmd, stderr=subprocess.STDOUT, universal_newlines=True, shell=True) | 41 | results = subprocess.check_output(cmd, stderr=subprocess.STDOUT, universal_newlines=True, shell=True) |
42 | 42 | ||
43 | return results | 43 | return results |