use unique variable names to prevent "global variable" side effects -> endless repeating tests of subsections

svn path=/trunk/; revision=19077
This commit is contained in:
Ulf Lamping 2006-08-29 21:01:05 +00:00
parent a9bbb04c7f
commit adc7305cd4
2 changed files with 4 additions and 4 deletions

View File

@ -58,9 +58,9 @@ TEST_STEP_POST_CB=
# level number of this test item (suite or step)
test_level() {
LIMIT=100
LIMIT_LEVEL=100
for ((a=0; a <= LIMIT ; a++))
for ((a=0; a <= LIMIT_LEVEL ; a++))
do
if [ ! $a -eq 0 ]; then
echo -n "."

View File

@ -111,8 +111,8 @@ do
exit 0
;;
"T" | "t" | "")
LIMIT=1
for ((a=1; a <= LIMIT ; a++)) # Double parentheses, and "LIMIT" with no "$".
LIMIT_RUNS=1
for ((a_runs=1; a_runs <= LIMIT_RUNS ; a_runs++)) # Double parentheses, and "LIMIT" with no "$".
do
test_suite_run "${menu_title[MENU_LEVEL]}" "${menu_function[MENU_LEVEL]}"
done