Skip to content

Commit fe86c39

Browse files
michaelforneydjmdjm
authored andcommitted
avoid k suffix in dd count operand in sftp-resume test
Not all dd implementations support this. POSIX only specifies suffixes for block size operands. Instead, just use 1024k to avoid the special case. This also removes an incorrect redirection operator that appeared in the 1m case.
1 parent 52c01f2 commit fe86c39

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

regress/sftp-resume.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ increase_datafile_size 1200
1010

1111
for cmd in put get; do
1212
verbose "$tid: ${cmd}"
13-
for size in 0 1 1k 1m size-1 same; do
13+
for size in 0 1 1k 1024k size-1 same; do
1414
trace "$tid: test ${cmd} ${size}"
1515
rm -rf ${COPY}.1 ${COPY}.2
1616
cp ${DATA} ${COPY}.1
@@ -24,8 +24,6 @@ for cmd in put get; do
2424
;;
2525
same) cp ${DATA} ${COPY}.2
2626
;;
27-
1m) dd if=${COPY}.1 of=${COPY}.2 bs=1k count=1k >/dev/null 2<&1
28-
;;
2927
*) dd if=${COPY}.1 of=${COPY}.2 bs=${size} count=1 >/dev/null 2>&1
3028
;;
3129
esac

0 commit comments

Comments
 (0)