aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-31 21:37:19 -0400
committerFranklin Wei <me@fwei.tk>2018-07-31 21:37:19 -0400
commit302091c1881c2a6f03f2b73c39834ac5548f8723 (patch)
treef26165ee769f0d77ead9888ea2a9f4cf77f2981f
parent689bf33a1fc319b7b42ba2f2f2c814f55f29793d (diff)
downloadcsaa-302091c1881c2a6f03f2b73c39834ac5548f8723.zip
csaa-302091c1881c2a6f03f2b73c39834ac5548f8723.tar.gz
csaa-302091c1881c2a6f03f2b73c39834ac5548f8723.tar.bz2
csaa-302091c1881c2a6f03f2b73c39834ac5548f8723.tar.xz
Fix off-by-one in test scripts
This would cause slightly incorrect results because modify and retrieve would each do 501 operations, not 500 as the scripts expected.
-rwxr-xr-xtestall_preinit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/testall_preinit.sh b/testall_preinit.sh
index bf590db..e2cba4d 100755
--- a/testall_preinit.sh
+++ b/testall_preinit.sh
@@ -16,7 +16,7 @@ cp databases/state_$logleaves module_state
chmod 644 csaa.db module_state
-start_id=$(echo "2^$1 - $runs_test" | bc)
+start_id=$(echo "2^$1 - $runs_test + 1" | bc)
./server $1 csaa.db > /dev/null &
pid=$!