summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/util-linux/util-linux/run-ptest
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux/run-ptest')
-rw-r--r--meta/recipes-core/util-linux/util-linux/run-ptest14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux/run-ptest b/meta/recipes-core/util-linux/util-linux/run-ptest
index 03248325bf..e135ee583b 100644
--- a/meta/recipes-core/util-linux/util-linux/run-ptest
+++ b/meta/recipes-core/util-linux/util-linux/run-ptest
@@ -1,5 +1,14 @@
1#!/bin/sh 1#!/bin/sh
2 2
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.
7UDEV_PID="`pidof "@base_sbindir@/udevd"`"
8if [ "x$UDEV_PID" != "x" ]; then
9 /etc/init.d/udev stop
10fi
11
3current_path=$(readlink -f $0) 12current_path=$(readlink -f $0)
4export bindir=$(dirname $current_path) 13export bindir=$(dirname $current_path)
5export PATH=$bindir/bin:$PATH 14export PATH=$bindir/bin:$PATH
@@ -27,3 +36,8 @@ do
27 }' 36 }'
28done 37done
29 38
39
40if [ "x$UDEV_PID" != "x" ]; then
41 /etc/init.d/udev start
42fi
43