summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-915554.t
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/bugs/bug-915554.t
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/bugs/bug-915554.t')
-rwxr-xr-xtests/bugs/bug-915554.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bugs/bug-915554.t b/tests/bugs/bug-915554.t
index 7d6f1336e29..b0c653ec5f7 100755
--- a/tests/bugs/bug-915554.t
+++ b/tests/bugs/bug-915554.t
@@ -30,7 +30,7 @@ i=1
# Write some data to a file and extend such that the file is sparse to a sector
# aligned boundary.
echo test > $M0/$i
-TEST truncate --size=1m $M0/$i
+TEST truncate -s 1M $M0/$i
# cache the original size
SIZE1=`stat -c %s $M0/$i`