]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
patchtest: sort when reading patches from a directory
authorRoss Burton <ross.burton@arm.com>
Thu, 19 Oct 2023 13:40:53 +0000 (14:40 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Oct 2023 13:53:43 +0000 (14:53 +0100)
commit4d6b586d37ab4528ed6dae6779cd730af9ef09c2
tree40ab01f8df6fd7115d3baff01355b7183670082e
parentbe8429d986335aae65c2426862b97836ba46e42a
patchtest: sort when reading patches from a directory

When reading patches from a directory it's important to sort the output
of os.listdir(), as that returns the files in an effectively random
order.  We can't test the patches apply if they're applied in the wrong
order, and typically patch filenames are prefixed with a counter to
ensure the order is correct.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/patchtest