summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python')
-rwxr-xr-xmeta-python/recipes-extended/python-pykickstart/files/run-ptest3
-rw-r--r--meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.63.bb18
2 files changed, 20 insertions, 1 deletions
diff --git a/meta-python/recipes-extended/python-pykickstart/files/run-ptest b/meta-python/recipes-extended/python-pykickstart/files/run-ptest
new file mode 100755
index 0000000000..289e68b054
--- /dev/null
+++ b/meta-python/recipes-extended/python-pykickstart/files/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake --deselect tests/test_packages.py::AddGroupsAndEnvironment_TestCase --deselect tests/commands/test_reboot.py::Reboot_TestCase
diff --git a/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.63.bb b/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.63.bb
index bd20c69980..c701e361b7 100644
--- a/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.63.bb
+++ b/meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.63.bb
@@ -4,18 +4,34 @@ LICENSE = "GPL-2.0-or-later"
4 4
5LIC_FILES_CHKSUM = "file://COPYING;md5=81bcece21748c91ba9992349a91ec11d" 5LIC_FILES_CHKSUM = "file://COPYING;md5=81bcece21748c91ba9992349a91ec11d"
6 6
7inherit python_setuptools_build_meta 7inherit python_setuptools_build_meta ptest
8 8
9RDEPENDS:${PN} = "python3 \ 9RDEPENDS:${PN} = "python3 \
10 python3-requests \ 10 python3-requests \
11 python3-six \ 11 python3-six \
12" 12"
13 13
14RDEPENDS:${PN}-ptest += " \
15 python3-pytest \
16 python3-unittest-automake-output \
17"
18
19do_install_ptest() {
20 install -d ${D}${PTEST_PATH}/tests
21 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests
22 for file in `grep -Rl unittest.main ${D}${PTEST_PATH}/tests/`; do
23 dirname=`dirname $file`
24 basename=`basename $file`
25 [ $basename != "__init__.py" ] && mv $file ${dirname}/test_${basename}
26 done
27}
28
14SRC_URI = "git://github.com/rhinstaller/pykickstart.git;protocol=https;branch=master;tag=r${PV} \ 29SRC_URI = "git://github.com/rhinstaller/pykickstart.git;protocol=https;branch=master;tag=r${PV} \
15 file://0001-support-authentication-for-kickstart.patch \ 30 file://0001-support-authentication-for-kickstart.patch \
16 file://0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch \ 31 file://0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch \
17 file://0003-comment-out-sections-shutdown-and-environment-in-gen.patch \ 32 file://0003-comment-out-sections-shutdown-and-environment-in-gen.patch \
18 file://0004-load.py-retry-to-invoke-request-with-timeout.patch \ 33 file://0004-load.py-retry-to-invoke-request-with-timeout.patch \
34 file://run-ptest \
19 " 35 "
20SRCREV = "6e0d1238cb4696a9040072a5a28a706e5775c552" 36SRCREV = "6e0d1238cb4696a9040072a5a28a706e5775c552"
21 37