summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-cryptography/run-ptest
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-17 00:32:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-17 16:44:33 +0000
commitc075d001606e4d9645c79c522688fa067f2edfa6 (patch)
treea3f16664757117a38aa06527d0d18187c1b445b6 /meta/recipes-devtools/python/python3-cryptography/run-ptest
parentb688d68c6e87e07f9fbdb4c7cf5c11db1db7ce1b (diff)
downloadpoky-c075d001606e4d9645c79c522688fa067f2edfa6.tar.gz
python3-cryptography: Fix ptest result handling
We run the tests correctly, we just don't get individual test result reporting. Borrow the code from python3-bcrypt to handle this correctly and ensure the test pass/fail scores and individual test results are reported in a format we can read. (From OE-Core rev: 17b7dfc46f75f66854c1e540480ef19df6fc43a2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-cryptography/run-ptest')
-rw-r--r--meta/recipes-devtools/python/python3-cryptography/run-ptest2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-cryptography/run-ptest b/meta/recipes-devtools/python/python3-cryptography/run-ptest
index 1e97dda63e..3089df8781 100644
--- a/meta/recipes-devtools/python/python3-cryptography/run-ptest
+++ b/meta/recipes-devtools/python/python3-cryptography/run-ptest
@@ -1,4 +1,4 @@
1#!/bin/sh 1#!/bin/sh
2if ./check-memfree.py; then 2if ./check-memfree.py; then
3 pytest -vvvv tests/ 3 pytest -vvvv tests/ -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
4fi 4fi