Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tero Saarni
OpenLDAP
Commits
f7a0fc9f
Commit
f7a0fc9f
authored
13 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Fix log parsing, broken by
8d74f717
parent
0e4412de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/scripts/test020-proxycache
+7
-5
7 additions, 5 deletions
tests/scripts/test020-proxycache
with
7 additions
and
5 deletions
tests/scripts/test020-proxycache
+
7
−
5
View file @
f7a0fc9f
...
...
@@ -314,13 +314,13 @@ FIRST=$CNT
# queries 2-6,8-10 are cacheable
CACHEABILITY
=
0111110111
grep
CACHEABLE
$LOG2
|
awk
'{
if ($
2
== "NOT")
if ($
3
== "NOT")
printf "Query %d not cacheable\n",NR
else
printf "Query %d cacheable\n",NR
}'
CACHED
=
`
grep
CACHEABLE
$LOG2
|
awk
'{
if ($
2
== "NOT")
if ($
3
== "NOT")
printf "0"
else
printf "1"
...
...
@@ -330,6 +330,8 @@ if test "$CACHEABILITY" = "$CACHED" ; then
echo
"Successfully verified cacheability"
else
echo
"Error in verifying cacheability"
echo
"
$CACHED
"
echo
"
$CACHEABILITY
"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
1
fi
...
...
@@ -466,7 +468,7 @@ fi
ANSWERABILITY
=
1110011
grep
ANSWERABLE
$LOG2
|
awk
"BEGIN {FIRST=
$FIRST
}"
'{
if (NR > FIRST) {
if ($
2
== "NOT")
if ($
3
== "NOT")
printf "Query %d not answerable\n",NR
else
printf "Query %d answerable\n",NR
...
...
@@ -474,7 +476,7 @@ grep ANSWERABLE $LOG2 | awk "BEGIN {FIRST=$FIRST}"'{
}'
ANSWERED
=
`
grep
ANSWERABLE
$LOG2
|
awk
"BEGIN {FIRST=
$FIRST
}"
'{
if (NR > FIRST) {
if ($
2
== "NOT")
if ($
3
== "NOT")
printf "0"
else
printf "1"
...
...
@@ -535,7 +537,7 @@ if test $RC != 0 ; then
exit
$RC
fi
SLEEP
=
`
expr
$PCACHETTR
+
$PCACHE_CCPERIOD
`
SLEEP
=
`
expr
$PCACHETTR
+
$PCACHE_CCPERIOD
+ 1
`
echo
"Waiting
$SLEEP
seconds for cache to refresh"
sleep
$SLEEP
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment