]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
patchtest: apply patch in repo root
authorGyorgy Sarvari <skandigraun@gmail.com>
Mon, 15 Sep 2025 09:02:05 +0000 (11:02 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Sep 2025 10:08:20 +0000 (11:08 +0100)
commit6c7bb23b05ab613d5efe8e1378d7e1b1cc8cfc45
tree75b264496c0d40dd64416b5f3fe0f99e66e6c434
parentf42becf48a22f8f40e4076d962693e18d38aa264
patchtest: apply patch in repo root

Patchtest tries to apply the received patch on the repository, without
specifying the directory, which means that the CWD is used. In case the
patch modifies a content in a different folder (e.g. the script is running
in ./meta, but the patch modifies ./meta-selftest), the patch will be skipped,
but git still returns 0, instead of complaining.

To avoid such false positives, specify the working directory for applying the
patch - the top of the repodir.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/patchtest/repo.py