summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-core/util-linux/util-linux/run-ptest
diff options
context:
space:
mode:
authordheerajpdsk <p.dheeraj.srujan.kumar@intel.com>2022-06-16 23:47:53 +0300
committerGitHub <noreply@github.com>2022-06-16 23:47:53 +0300
commite0c224c79550bf49928bfb75f629233b1ef07c7a (patch)
treedfe08b91193d44f4984117dbd3eef9866e097582 /meta-openbmc-mods/meta-common/recipes-core/util-linux/util-linux/run-ptest
parent0945170f93cc0c101bf01739f41136c2f05af570 (diff)
parent1f4be67aa2cc61a3db46c577da5ccd88cc84fa16 (diff)
downloadopenbmc-e0c224c79550bf49928bfb75f629233b1ef07c7a.tar.xz
Merge pull request #82 from Intel-BMC/update1-0.91-151
Update to internal 1-0.91-151
Diffstat (limited to 'meta-openbmc-mods/meta-common/recipes-core/util-linux/util-linux/run-ptest')
-rw-r--r--meta-openbmc-mods/meta-common/recipes-core/util-linux/util-linux/run-ptest24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-core/util-linux/util-linux/run-ptest b/meta-openbmc-mods/meta-common/recipes-core/util-linux/util-linux/run-ptest
new file mode 100644
index 000000000..3a910be12
--- /dev/null
+++ b/meta-openbmc-mods/meta-common/recipes-core/util-linux/util-linux/run-ptest
@@ -0,0 +1,24 @@
+#!/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
+
+./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