diff options
author | dheerajpdsk <p.dheeraj.srujan.kumar@intel.com> | 2022-06-16 23:47:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 23:47:53 +0300 |
commit | e0c224c79550bf49928bfb75f629233b1ef07c7a (patch) | |
tree | dfe08b91193d44f4984117dbd3eef9866e097582 /meta-openbmc-mods/meta-common/recipes-core/util-linux/util-linux/run-ptest | |
parent | 0945170f93cc0c101bf01739f41136c2f05af570 (diff) | |
parent | 1f4be67aa2cc61a3db46c577da5ccd88cc84fa16 (diff) | |
download | openbmc-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-ptest | 24 |
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 |