Whamcloud - gitweb
LU-9281 test: stop using invalid ps option 98/26298/4
authorBob Glossman <bob.glossman@intel.com>
Sat, 1 Apr 2017 20:49:20 +0000 (13:49 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 6 Apr 2017 01:02:19 +0000 (01:02 +0000)
Use of the '-q' option in a ps commend was introduced in sanity.sh
test_161d by the recent commit ee25babfe72378f9496a9732742984f26eb7d4a5.
Thst option isn't valid in all versions of ps.  It doesn't exist in any
sles version.

Use the '-p' option which exists everywhere instead.

Test-Parameters: clientdistro=sles12sp2 testgroup=review-ldiskfs

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I143be0c1ad633889c9ed3ff7f5cb38bf54feb19a
Reviewed-on: https://review.whamcloud.com/26298
Tested-by: Jenkins
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/sanity.sh

index a091e22..0985bbe 100755 (executable)
@@ -11259,7 +11259,7 @@ test_161d() {
        # wait for create to be delayed
        sleep 2
 
-       ps -q $pid
+       ps -p $pid
        [[ $? -eq 0 ]] || error "create should be blocked"
 
        local tempfile=$(mktemp)