mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
CI: show skipped Python tests
Call pytest3 with argument -ra to display the reason why Python tests are skipped. The -r flag displays a test summary info for each test. -ra eliminates this info for passed tests. Pros an cons were discussed in: https://lists.denx.de/pipermail/u-boot/2020-June/417090.html Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
committed by
Tom Rini
parent
3113c84ba2
commit
f309247399
@@ -316,7 +316,7 @@ jobs:
|
|||||||
export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
|
export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
|
||||||
export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
|
export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
|
||||||
# "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
|
# "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
|
||||||
./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
|
./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
|
||||||
# the below corresponds to .gitlab-ci.yml "after_script"
|
# the below corresponds to .gitlab-ci.yml "after_script"
|
||||||
rm -rf /tmp/uboot-test-hooks /tmp/venv
|
rm -rf /tmp/uboot-test-hooks /tmp/venv
|
||||||
EOF
|
EOF
|
||||||
|
@@ -46,7 +46,7 @@ stages:
|
|||||||
# "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
|
# "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
|
||||||
- export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
|
- export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
|
||||||
export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
|
export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
|
||||||
./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID}
|
./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID}
|
||||||
${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"}
|
${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"}
|
||||||
--build-dir "$UBOOT_TRAVIS_BUILD_DIR"
|
--build-dir "$UBOOT_TRAVIS_BUILD_DIR"
|
||||||
|
|
||||||
|
@@ -250,7 +250,7 @@ script:
|
|||||||
virtualenv -p /usr/bin/python3 /tmp/venv;
|
virtualenv -p /usr/bin/python3 /tmp/venv;
|
||||||
. /tmp/venv/bin/activate;
|
. /tmp/venv/bin/activate;
|
||||||
pip install -r test/py/requirements.txt;
|
pip install -r test/py/requirements.txt;
|
||||||
./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID}
|
./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID}
|
||||||
${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"}
|
${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"}
|
||||||
--build-dir "$UBOOT_TRAVIS_BUILD_DIR" || exit;
|
--build-dir "$UBOOT_TRAVIS_BUILD_DIR" || exit;
|
||||||
if [[ -n "${TEST_PY_TOOLS}" ]]; then
|
if [[ -n "${TEST_PY_TOOLS}" ]]; then
|
||||||
|
Reference in New Issue
Block a user