summaryrefslogtreecommitdiffstats
path: root/recipes-security/keyutils/files/keyutils-test-fix-output-format.patch
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2017-05-24 10:22:36 +0800
committerArmin Kuster <akuster808@gmail.com>2017-06-01 08:01:34 -0700
commit37c47c164e4d02e6e9b1c106a73695e8a0094c30 (patch)
tree45ce1ecb1cadcdb38ad01f305791a902d87a0b32 /recipes-security/keyutils/files/keyutils-test-fix-output-format.patch
parent20f2f496c2cfb32ec164ac0b3d20676a214c4341 (diff)
downloadmeta-security-37c47c164e4d02e6e9b1c106a73695e8a0094c30.tar.gz
keyutils: add new recipe
keyutils is utilities to control the kernel key management facility and to provide a mechanism by which the kernel call back to userspace to get a key instantiated. It's required by ecryptfs-utils. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security/keyutils/files/keyutils-test-fix-output-format.patch')
-rw-r--r--recipes-security/keyutils/files/keyutils-test-fix-output-format.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-security/keyutils/files/keyutils-test-fix-output-format.patch b/recipes-security/keyutils/files/keyutils-test-fix-output-format.patch
new file mode 100644
index 0000000..a4ffd50
--- /dev/null
+++ b/recipes-security/keyutils/files/keyutils-test-fix-output-format.patch
@@ -0,0 +1,41 @@
1From 49b6321368e4bd3cd233d045cd09004ddd7968b2 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Mon, 15 May 2017 14:52:00 +0800
4Subject: [PATCH] keyutils: fix output format
5
6keyutils ptest output format is incorrect, according to yocto
7Development Manual
8(http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#testing-packages-with-ptest)
95.10.6. Testing Packages With ptestThe test generates output in the format used by Automake:
10<result>: <testname>
11where the result can be PASS, FAIL, or SKIP, and the testname can be any
12identifying string.
13So we should change the test result format to match yocto ptest rules.
14
15Upstream-Status: Inappropriate [OE ptest specific]
16
17Signed-off-by: Li Wang <li.wang@windriver.com>
18Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
19---
20 tests/runtest.sh | 5 +++++
21 1 file changed, 5 insertions(+)
22
23diff --git a/tests/runtest.sh b/tests/runtest.sh
24index b6eaa7c..84263fb 100644
25--- a/tests/runtest.sh
26+++ b/tests/runtest.sh
27@@ -21,6 +21,11 @@ for i in ${TESTS}; do
28 echo "### RUNNING TEST $i"
29 if [[ $AUTOMATED != 0 ]] ; then
30 bash ./runtest.sh
31+ if [ $? != 0 ]; then
32+ echo "FAIL: $i"
33+ else
34+ echo "PASS: $i"
35+ fi
36 else
37 bash ./runtest.sh || exit 1
38 fi
39--
402.11.0
41