diff options
| author | Narpat Mali <narpat.mali@windriver.com> | 2023-02-14 10:53:47 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-09 13:19:03 +0000 |
| commit | 8f33f65d60a0d7bd30269a81173c877f2cf2e1dc (patch) | |
| tree | 492be7b67742771f533cfa3713c8a0e865dc258f /meta | |
| parent | 7cabd3e23ccc00efc37ca9b04058388b37658832 (diff) | |
| download | poky-8f33f65d60a0d7bd30269a81173c877f2cf2e1dc.tar.gz | |
libseccomp: fix for the ptest result format
The output of libseccomp ptest should follow a unified format as
per this https://wiki.yoctoproject.org/wiki/Ptest
Replaced the test results SUCCESS, FAILURE & SKIPPPED with PASS,
FAIL & SKIP and printing the ptest result with the below format
result: testname
(From OE-Core rev: 20f15c72ad7e52fb68669bce8be57bbe5a366ca3)
Signed-off-by: Narpat Mali <narpat.mali@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 30d025a8641cfcce5412b5f021478777620b55f1)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-support/libseccomp/files/run-ptest | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-support/libseccomp/files/run-ptest b/meta/recipes-support/libseccomp/files/run-ptest index 54b4a63cd2..63c79f09c4 100644 --- a/meta/recipes-support/libseccomp/files/run-ptest +++ b/meta/recipes-support/libseccomp/files/run-ptest | |||
| @@ -1,4 +1,7 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | cd tests | 3 | cd tests |
| 4 | sed -i 's/SUCCESS/PASS/g; s/FAILURE/FAIL/g; s/SKIPPED/SKIP/g' regression | ||
| 5 | sed -i 's/"Test %s result: %s\\n" "$1" "$2"/"%s: %s\\n" "$2" "$1"/g' regression | ||
| 6 | sed -i 's/"Test %s result: %s %s\\n" "$1" "$2" "$3"/"%s: %s %s\\n" "$2" "$1" "$3"/g' regression | ||
| 4 | ./regression -a | 7 | ./regression -a |
