Module Name: src
Committed By: riz
Date: Wed Jan 5 18:13:54 UTC 2011
Modified Files:
src/tests/sbin/resize_ffs: common.sh
Log Message:
Replace uses of 'jot' with 'seq'. This is primarily to work around
a qemu-running-on-netbsd problem with FP which causes 'jot' to output
incorrect sequences, which were causing failures on one of the auto-testing
platforms. While 'seq' also uses FP, it does not seem to be affected in
this particular usage
As a bonus, however, 'seq' is actually a better fit (the commandline is
more intuitive) for the way it is used in these tests.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/sbin/resize_ffs/common.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/sbin/resize_ffs/common.sh
diff -u src/tests/sbin/resize_ffs/common.sh:1.8 src/tests/sbin/resize_ffs/common.sh:1.9
--- src/tests/sbin/resize_ffs/common.sh:1.8 Wed Jan 5 18:05:32 2011
+++ src/tests/sbin/resize_ffs/common.sh Wed Jan 5 18:13:54 2011
@@ -63,7 +63,7 @@
copy_multiple ()
{
local i
- for i in $(jot $1); do
+ for i in $(seq $1); do
copy_data $i
done
}
@@ -78,7 +78,7 @@
remove_multiple ()
{
local i
- for i in $(jot $1); do
+ for i in $(seq $1); do
remove_data $i
done
}
@@ -95,7 +95,7 @@
check_data_range ()
{
local i
- for i in $(jot $(($2-$1+1)) $1); do
+ for i in $(seq $1 $2); do
check_data $i
done
}