Use a portable syntax for seq(1). GNU seq has a default INCR of 1, but
BSD seq has a default INCR of either +1 or -1, depending on the other
arguments. INCR must be explicitly specified for portability.
This bug is the reason that I was running into the segfaults whose
fix I reported as BUG #6510.
Signed-off-by: Alan Somers <asomers@gmail.com>
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
for type in `./ceph-dencoder list_types`; do
num=`./ceph-dencoder type $type count_tests`
echo "$num $type"
- for n in `seq 1 $num`; do
+ for n in `seq 1 1 $num 2>/dev/null`; do
if ! ./ceph-dencoder type $type select_test $n encode decode; then
echo "**** $type test $n encode+decode check failed ****"
echo " ceph-dencoder type $type select_test $n encode decode"