Files
poky/meta/recipes-support/libusb/libusb1/run-ptest
Maksym Kokhan via Openembedded-core 74d8acaa0f libusb: ptest: don't skip debug output and fix failures processing
Current run-ptest script prints nothing, when stress tests fail.
Fix it in new implementation, discarding external dependency on sed.
Also leave in place all stress output, just add standard ptest result.

Fixes: 3f0106bf2e41 ("libusb: Add ptest")
(From OE-Core rev: cd05029c78dea48c20f9acb2c5fee56b19193f22)

Signed-off-by: Maksym Kokhan <maksym.kokhan@globallogic.com>
Reviewed-by: Andrii Bordunov <andrii.bordunov@globallogic.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-08 14:13:54 +01:00

452 B
Executable File

#!/bin/sh

echo echo "---------------------------- libusb1 tests ---------------------------" echo

./stress | {
while read -r str do echo "$str" if [ "${str#*Starting test run:}" != "$str" ] then name="${str#Starting test run: }" name="${name%...}" else case "$str" in "Success (0)") echo "PASS: $name" ;; "Failure (1)" | "Error (2)") echo "FAIL: $name" ;; "Skip (3)") echo "SKIP: $name" ;; esac fi done }