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>
# wait for create to be delayed
sleep 2
- ps -q $pid
+ ps -p $pid
[[ $? -eq 0 ]] || error "create should be blocked"
local tempfile=$(mktemp)