summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-866459.t
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2014-07-10 05:45:52 +0200
committerVijay Bellur <vbellur@redhat.com>2014-07-14 06:29:15 -0700
commit210a59e48a52515615e440e2a6e1b650063c370b (patch)
treed7b6c13f342fc7ca01c17216720cf52990bd70aa /tests/bugs/bug-866459.t
parentf637f2f101b13388187f8a6852d3ae6f1d9c2ad5 (diff)
Regression test portability: dd usage
NetBSD, FreeBSD, and MacOS X dd(1) bs argument uses m for megabyte, while Linux uses M. Use bs=1024k instead of bs=1M for better compatibility. BUG: 764655 Change-Id: I603f57adbc9b31f6d634b918726437fbfce42e03 Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.org/8278 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-by: Justin Clift <justin@gluster.org> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/bugs/bug-866459.t')
-rw-r--r--tests/bugs/bug-866459.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bugs/bug-866459.t b/tests/bugs/bug-866459.t
index 94ef2695062..fe92f3a4ec5 100644
--- a/tests/bugs/bug-866459.t
+++ b/tests/bugs/bug-866459.t
@@ -21,13 +21,13 @@ TEST $CLI volume start $V0
## Mount FUSE with caching disabled
TEST glusterfs --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id $V0 $M0;
-dd of=$M0/a if=/dev/urandom bs=1M count=1 2>&1 > /dev/null
+dd of=$M0/a if=/dev/urandom bs=1024k count=1 2>&1 > /dev/null
B0_hiphenated=`echo $B0 | tr '/' '-'`
## Bring a brick down
TEST kill_brick $V0 $H0 $B0/${V0}1
EXPECT '1' echo `pgrep glusterfsd | wc -l`
## Rewrite the file
-dd of=$M0/a if=/dev/urandom bs=1M count=1 2>&1 > /dev/null
+dd of=$M0/a if=/dev/urandom bs=1024k count=1 2>&1 > /dev/null
TEST $CLI volume start $V0 force
## Wait for the brick to give CHILD_UP in client protocol
EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status $V0 0