summaryrefslogtreecommitdiffstats
path: root/tests/features
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2014-10-01 06:18:50 +0200
committerHarshavardhana <harsha@harshavardhana.net>2014-10-01 08:54:31 -0700
commit0e1419d6fbf008b6384236d6103066afbc92dd77 (patch)
tree06646117b6347df73133651d6642a4a3ccfea398 /tests/features
parentf54dd171bca5086f11733a1c4fe578e838b2e6fd (diff)
Regression test portability: truncate
Use truncate -s 1M instead of truncate --size=1m for portability sake BUG: 1129939 Change-Id: I5bf6ca1f9bb4fa3c91796a659a06bf368776b3e5 Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.org/8894 Reviewed-by: Xavier Hernandez <xhernandez@datalab.es> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Harshavardhana <harsha@harshavardhana.net> Tested-by: Harshavardhana <harsha@harshavardhana.net>
Diffstat (limited to 'tests/features')
-rwxr-xr-xtests/features/weighted-rebalance.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/features/weighted-rebalance.t b/tests/features/weighted-rebalance.t
index b9d9eb4eb73..3964fb22290 100755
--- a/tests/features/weighted-rebalance.t
+++ b/tests/features/weighted-rebalance.t
@@ -46,11 +46,11 @@ TEST $CLI volume info
TEST mkdir ${B0}/${V0}{1,2}
-TEST truncate --size $((40*1024*1024)) ${B0}/disk1
+TEST truncate -s $((40*1024*1024)) ${B0}/disk1
TEST mkfs.xfs -f -i size=512 ${B0}/disk1
TEST mount -o loop ${B0}/disk1 ${B0}/${V0}1
-TEST truncate --size $((80*1024*1024)) ${B0}/disk2
+TEST truncate -s $((80*1024*1024)) ${B0}/disk2
TEST mkfs.xfs -f -i size=512 ${B0}/disk2
TEST mount -o loop ${B0}/disk2 ${B0}/${V0}2