commit: c234caf713dbde56979601015054d3f3f530303c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 7 19:24:32 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 7 19:27:02 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c234caf7
dev-python/mcbootflash: Fix tests with new pytest-reserial
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/mcbootflash/Manifest | 1 +
dev-python/mcbootflash/mcbootflash-9.0.1.ebuild | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/dev-python/mcbootflash/Manifest b/dev-python/mcbootflash/Manifest
index a1dfa4eb1455..e5f404ed8d5e 100644
--- a/dev-python/mcbootflash/Manifest
+++ b/dev-python/mcbootflash/Manifest
@@ -1 +1,2 @@
DIST mcbootflash-9.0.1.tar.gz 26858 BLAKE2B
d8d8486a8713d46f7b93443dcfd9cbd9a93452fa7c8e76aeba1f4bfbf52765fbe3807fe8206b994015c094f9fba1626d5a3bb2fa93bd6b6400a9cbaaee7c19a9
SHA512
0c001a0a2c10e9d4bf111136d08ec89c4bc62568934ef9d8b75d7c58d59f451f5459ccc387c72424e8d16c5e49e7bba903efce403f41923ca33d87c2290a84e9
+DIST test_mcbootflash.jsonl 9259 BLAKE2B
d05287760b3dc82ccf720a140390e027758a4e1e79d72364aed741937298d872127f11db8d5a4c07a93cb72f091ab89bd606062446f9108359205ec75c92321f
SHA512
b9f5ea649a8cff9ea576b96e22bb352c61f8cd1f3e7ca0a7a0ae84a2c03fa07b1ecc7a3d8a83de868e4f946ef9fb22a5fc757038be4c5ba2398c483c67bbd9ca
diff --git a/dev-python/mcbootflash/mcbootflash-9.0.1.ebuild
b/dev-python/mcbootflash/mcbootflash-9.0.1.ebuild
index 12e8228e078c..11eb2052f8b1 100644
--- a/dev-python/mcbootflash/mcbootflash-9.0.1.ebuild
+++ b/dev-python/mcbootflash/mcbootflash-9.0.1.ebuild
@@ -13,6 +13,9 @@ HOMEPAGE="
https://pypi.org/project/mcbootflash/
https://github.com/bessman/mcbootflash/
"
+SRC_URI+="
+
https://github.com/bessman/mcbootflash/raw/eb940f0324eb0c6822a0feca48449f5191cf5a00/tests/test_mcbootflash.jsonl
+"
LICENSE="MIT"
SLOT="0"
@@ -30,6 +33,13 @@ BDEPEND="
distutils_enable_tests pytest
+src_unpack() {
+ default
+ # sigh, pytest-reserial arbitrarily changed output format
+ # without caring for backwards compatibility
+ cp "${DISTDIR}"/test_mcbootflash.jsonl "${S}"/tests/ || die
+}
+
python_test() {
epytest --replay
}