]> sourceware.org Git - lvm2.git/commitdiff
tests: aux.sh use pgrep
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 28 Jun 2017 22:04:47 +0000 (00:04 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 29 Jun 2017 20:23:16 +0000 (22:23 +0200)
test/lib/aux.sh

index 680adb23b6586a417c0ca0fab23293531744da89..863f3da33b9e7f4a1ef2f51651271ce386bf53be 100644 (file)
@@ -309,7 +309,7 @@ prepare_lvmdbusd() {
 
         # FIXME: This is not correct! Daemon is auto started.
        echo "checking lvmdbusd is NOT running..."
-       if ps -elf | grep lvmdbusd | grep python3; then
+       if pgrep lvmdbusd | grep python3; then
                echo "Cannot run while existing lvmdbusd process exists"
                return 1
        fi
@@ -343,7 +343,7 @@ prepare_lvmdbusd() {
 
        sleep 1
        echo "checking lvmdbusd IS running..."
-       if ! ps -elf | grep lvmdbusd | grep python3; then
+       if ! pgrep lvmdbusd | grep python3; then
                echo "Failed to start lvmdbusd daemon"
                return 1
        fi
This page took 0.036435 seconds and 5 git commands to generate.