Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 3 | |
| 4 | # When udevd (from eudev) is running most eject/mount tests will fail because |
| 5 | # of automount. We need to stop udevd before executing util-linux's tests. |
| 6 | # The systemd-udevd daemon doesn't change the outcome of util-linux's tests. |
| 7 | UDEV_PID="`pidof "@base_sbindir@/udevd"`" |
| 8 | if [ "x$UDEV_PID" != "x" ]; then |
| 9 | /etc/init.d/udev stop |
| 10 | fi |
| 11 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 12 | current_path=$(readlink -f $0) |
| 13 | export bindir=$(dirname $current_path) |
| 14 | export PATH=$bindir/bin:$PATH |
| 15 | |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame^] | 16 | # losetup tests will be skipped and/or fail otherwise |
| 17 | modprobe loop |
| 18 | |
Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame] | 19 | ./tests/run.sh --use-system-commands --parsable --show-diff | sed -u '{ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 20 | s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/ |
| 21 | s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/ |
| 22 | s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/ |
Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame] | 23 | }' |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 24 | |
| 25 | if [ "x$UDEV_PID" != "x" ]; then |
| 26 | /etc/init.d/udev start |
| 27 | fi |