]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
patchtest: set default repo and testdir targets
authorTrevor Gamblin <tgamblin@baylibre.com>
Mon, 16 Oct 2023 19:44:58 +0000 (15:44 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Oct 2023 10:06:15 +0000 (11:06 +0100)
commitbae7421ece4806f5148f164293810b9fe75e0756
treeb526a9262ad15b7c89cb27668655c32a2b46e320
parentcf318c3c05fc050b8c838c04f28797325c569c5c
patchtest: set default repo and testdir targets

Since patchtest is in oe-core, the Python os module's methods can be
used to retrieve the repository path and tests directory by default.
This reduces the number of mandatory arguments for invocation of
patchtest unless the user wants to use a custom test suite or test
patches against a different repo. The REPO and TESTDIR arguments are
likewise adjusted so that they are optional. Also, make it more obvious
what the --startdir flag is meant for on the command line by renaming it
to --testdir, and update the scripts/patchtest.README file to be
consistent with the new usage.

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