Files
poky/meta/recipes-core/util-linux/util-linux/run-ptest
Alexander Kanavin 63fb37b1ac util-linux: upgrade 2.37.4 -> 2.38
(From OE-Core rev: 929af31db89bb5540b56d953dee2950833390407)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-05-05 21:17:37 +01:00

890 B

#!/bin/sh

When udevd (from eudev) is running most eject/mount tests will fail because

of automount. We need to stop udevd before executing util-linux's tests.

The systemd-udevd daemon doesn't change the outcome of util-linux's tests.

UDEV_PID="pidof "@base_sbindir@/udevd"" if [ "x$UDEV_PID" != "x" ]; then /etc/init.d/udev stop fi

current_path=$(readlink -f $0) export bindir=$(dirname $current_path) export PATH=$bindir/bin:$PATH

losetup tests will be skipped and/or fail otherwise

modprobe loop

./tests/run.sh --use-system-commands --parsable --show-diff | sed -u '{ s/^(.):(.) ... OK$/PASS: \1:\2/
s/^(.):(.) ... FAILED (.)$/FAIL: \1:\2 \3/
s/^(.
):(.) ... SKIPPED (.)$/SKIP: \1:\2 \3/
}'

if [ "x$UDEV_PID" != "x" ]; then /etc/init.d/udev start fi