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 | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame^] | 16 | ./tests/run.sh --use-system-commands --parsable --show-diff | sed -u '{ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 17 | s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/ |
| 18 | s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/ |
| 19 | s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/ |
Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame^] | 20 | }' |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 21 | |
| 22 | if [ "x$UDEV_PID" != "x" ]; then |
| 23 | /etc/init.d/udev start |
| 24 | fi |