修訂 | 38d708929ad103324f6e87adea951ae037ea1a1f (tree) |
---|---|
時間 | 2010-10-13 17:51:56 |
作者 | 0809216 <0809216@1ed6...> |
Commiter | 0809216 |
Fixed configtest script
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10366 1ed66053-1c2d-0410-8867-f7571e6e31d3
@@ -9,10 +9,9 @@ then | ||
9 | 9 | echo "Test failed: $L7DIRECTORD configtest" |
10 | 10 | exit 1 |
11 | 11 | fi |
12 | -usleep 100000 | |
13 | 12 | |
14 | -EXPECT="Syntax OK" | |
15 | -if [ "$RET" != "$EXPECT" ] | |
13 | +echo "$RET" | grep "Syntax OK" > /dev/null 2>&1 | |
14 | +if [ $? -ne 0 ] | |
16 | 15 | then |
17 | 16 | echo "Test failed: $L7DIRECTORD configtest" |
18 | 17 | exit 1 |
@@ -9,10 +9,9 @@ then | ||
9 | 9 | echo "Test failed: $L7DIRECTORD -t" |
10 | 10 | exit 1 |
11 | 11 | fi |
12 | -usleep 100000 | |
13 | 12 | |
14 | -EXPECT="Syntax OK" | |
15 | -if [ "$RET" != "$EXPECT" ] | |
13 | +echo "$RET" | grep "Syntax OK" > /dev/null 2>&1 | |
14 | +if [ $? -ne 0 ] | |
16 | 15 | then |
17 | 16 | echo "Test failed: $L7DIRECTORD -t" |
18 | 17 | exit 1 |
@@ -9,10 +9,9 @@ then | ||
9 | 9 | echo "Test failed: $INIT_L7DIRECTORD configtest" |
10 | 10 | exit 1 |
11 | 11 | fi |
12 | -usleep 100000 | |
13 | 12 | |
14 | -EXPECT="Syntax OK" | |
15 | -if [ "$RET" != "$EXPECT" ] | |
13 | +echo "$RET" | grep "Syntax OK" > /dev/null 2>&1 | |
14 | +if [ $? -ne 0 ] | |
16 | 15 | then |
17 | 16 | echo "Test failed: $INIT_L7DIRECTORD configtest" |
18 | 17 | exit 1 |
@@ -9,10 +9,9 @@ then | ||
9 | 9 | echo "Test failed: $L7DIRECTORD configtest" |
10 | 10 | exit 1 |
11 | 11 | fi |
12 | -usleep 100000 | |
13 | 12 | |
14 | -EXPECT="Syntax OK" | |
15 | -if [ "$RET" != "$EXPECT" ] | |
13 | +echo "$RET" | grep "Syntax OK" > /dev/null 2>&1 | |
14 | +if [ $? -ne 0 ] | |
16 | 15 | then |
17 | 16 | echo "Test failed: $L7DIRECTORD configtest" |
18 | 17 | exit 1 |
@@ -9,10 +9,9 @@ then | ||
9 | 9 | echo "Test failed: $L7DIRECTORD -t" |
10 | 10 | exit 1 |
11 | 11 | fi |
12 | -usleep 100000 | |
13 | 12 | |
14 | -EXPECT="Syntax OK" | |
15 | -if [ "$RET" != "$EXPECT" ] | |
13 | +echo "$RET" | grep "Syntax OK" > /dev/null 2>&1 | |
14 | +if [ $? -ne 0 ] | |
16 | 15 | then |
17 | 16 | echo "Test failed: $L7DIRECTORD -t" |
18 | 17 | exit 1 |
@@ -9,10 +9,9 @@ then | ||
9 | 9 | echo "Test failed: $INIT_L7DIRECTORD configtest" |
10 | 10 | exit 1 |
11 | 11 | fi |
12 | -usleep 100000 | |
13 | 12 | |
14 | -EXPECT="Syntax OK" | |
15 | -if [ "$RET" != "$EXPECT" ] | |
13 | +echo "$RET" | grep "Syntax OK" > /dev/null 2>&1 | |
14 | +if [ $? -ne 0 ] | |
16 | 15 | then |
17 | 16 | echo "Test failed: $INIT_L7DIRECTORD configtest" |
18 | 17 | exit 1 |
@@ -10,8 +10,8 @@ then | ||
10 | 10 | exit 1 |
11 | 11 | fi |
12 | 12 | |
13 | -EXPECT="Syntax OK" | |
14 | -if [ "$RET" != "$EXPECT" ] | |
13 | +echo "$RET" | grep "Syntax OK" > /dev/null 2>&1 | |
14 | +if [ $? -ne 0 ] | |
15 | 15 | then |
16 | 16 | echo "Test failed: $L7DIRECTORD ${L7DIRECTORD_CONF_DIR}/specified.cf configtest" |
17 | 17 | exit 1 |
@@ -10,8 +10,8 @@ then | ||
10 | 10 | exit 1 |
11 | 11 | fi |
12 | 12 | |
13 | -EXPECT="Syntax OK" | |
14 | -if [ "$RET" != "$EXPECT" ] | |
13 | +echo "$RET" | grep "Syntax OK" > /dev/null 2>&1 | |
14 | +if [ $? -ne 0 ] | |
15 | 15 | then |
16 | 16 | echo "Test failed: $L7DIRECTORD -t ${L7DIRECTORD_CONF_DIR}/specified.cf" |
17 | 17 | exit 1 |