summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-1109770.t
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2014-07-10 06:02:38 +0200
committerHarshavardhana <harsha@harshavardhana.net>2014-07-28 17:41:42 -0700
commita95444c95cfde4d80c179f2af2f0334565049a51 (patch)
treec533b1b345a319cb3cd75e030213288445863485 /tests/bugs/bug-1109770.t
parent38bae1bcf95e0b4f713120783c2e26fcc3f629b5 (diff)
Regression test portability: ps
ps aux is truncated to the terminal width on NetBSD, Use ps auxww to avoid that BUG: 764655 Change-Id: I28a2fc23e2823dd6524a72da30111b86fc4bfa7b Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.org/8281 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Harshavardhana <harsha@harshavardhana.net> Tested-by: Harshavardhana <harsha@harshavardhana.net>
Diffstat (limited to 'tests/bugs/bug-1109770.t')
-rw-r--r--tests/bugs/bug-1109770.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/bugs/bug-1109770.t b/tests/bugs/bug-1109770.t
index 139c1022e5b..c9490a63654 100644
--- a/tests/bugs/bug-1109770.t
+++ b/tests/bugs/bug-1109770.t
@@ -44,25 +44,25 @@ TEST $CLI snapshot create snap4 $V0;
TEST $CLI volume set $V0 features.uss enable;
-SNAPD_PID=$(ps aux | grep snapd | grep -v grep | awk '{print $2}');
+SNAPD_PID=$(ps auxww | grep snapd | grep -v grep | awk '{print $2}');
TEST [ $SNAPD_PID -gt 0 ];
TEST $CLI volume set $V0 features.uss disable;
-SNAPD_PID=$(ps aux | grep snapd | grep -v grep | awk '{print $2}');
+SNAPD_PID=$(ps auxww | grep snapd | grep -v grep | awk '{print $2}');
TEST ! [ $SNAPD_PID -gt 0 ];
TEST $CLI volume set $V0 features.uss enable;
-SNAPD_PID=$(ps aux | grep snapd | grep -v grep | awk '{print $2}');
+SNAPD_PID=$(ps auxww | grep snapd | grep -v grep | awk '{print $2}');
TEST [ $SNAPD_PID -gt 0 ];
TEST $CLI volume stop $V0;
-SNAPD_PID=$(ps aux | grep snapd | grep -v grep | awk '{print $2}');
+SNAPD_PID=$(ps auxww | grep snapd | grep -v grep | awk '{print $2}');
TEST ! [ $SNAPD_PID -gt 0 ];