diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2014-10-01 06:18:50 +0200 |
---|---|---|
committer | Harshavardhana <harsha@harshavardhana.net> | 2014-10-01 08:54:31 -0700 |
commit | 0e1419d6fbf008b6384236d6103066afbc92dd77 (patch) | |
tree | 06646117b6347df73133651d6642a4a3ccfea398 /tests/basic | |
parent | f54dd171bca5086f11733a1c4fe578e838b2e6fd (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/basic')
-rw-r--r-- | tests/basic/ec/ec.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/basic/ec/ec.t b/tests/basic/ec/ec.t index b4ce338231c..864f9f72bad 100644 --- a/tests/basic/ec/ec.t +++ b/tests/basic/ec/ec.t @@ -37,7 +37,7 @@ function check_create_write { } function check_truncate { - truncate --size=8192 $tmpdir/truncate + truncate -s 8192 $tmpdir/truncate for b in $*; do cmp $tmpdir/truncate $b/truncate || return 1 done @@ -165,7 +165,7 @@ sleep 10 # Test create+write TEST cp $tmpdir/create-write $M0/ # Test truncate -TEST truncate --size=8192 $M0/truncate +TEST truncate -s 8192 $M0/truncate # Test hard link TEST ln $M0/hard-link-1 $M0/hard-link-2 # Test soft link |