Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
2e4fa1f5
Commit
2e4fa1f5
authored
Apr 17, 2011
by
Rogério Carvalho Schneider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moving logs to tmp/logs when testing
parent
74ba7eb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
base_test_case.rb
test/base_test_case.rb
+5
-5
No files found.
test/base_test_case.rb
View file @
2e4fa1f5
...
...
@@ -88,7 +88,7 @@ module BaseTestCase
def
create_dirs
FileUtils
.
mkdir
(
'tmp'
)
unless
File
.
exist?
(
'tmp'
)
and
File
.
directory?
(
'tmp'
)
FileUtils
.
mkdir
(
'tmp/client_body_temp'
)
unless
File
.
exist?
(
'tmp/client_body_temp'
)
and
File
.
directory?
(
'tmp/client_body_temp'
)
FileUtils
.
mkdir
(
'
logs'
)
unless
File
.
exist?
(
'logs'
)
and
File
.
directory?
(
'
logs'
)
FileUtils
.
mkdir
(
'
tmp/logs'
)
unless
File
.
exist?
(
'tmp/logs'
)
and
File
.
directory?
(
'tmp/
logs'
)
end
def
has_passed?
...
...
@@ -97,10 +97,10 @@ module BaseTestCase
def
config_log_and_pid_file
@client_body_temp
=
File
.
expand_path
(
"tmp/client_body_temp"
)
@pid_file
=
File
.
expand_path
(
"logs/nginx.pid"
)
@main_error_log
=
File
.
expand_path
(
"logs/nginx-main_error-
#{
test_method_name
}
.log"
)
@access_log
=
File
.
expand_path
(
"logs/nginx-http_access-
#{
test_method_name
}
.log"
)
@error_log
=
File
.
expand_path
(
"logs/nginx-http_error-
#{
test_method_name
}
.log"
)
@pid_file
=
File
.
expand_path
(
"
tmp/
logs/nginx.pid"
)
@main_error_log
=
File
.
expand_path
(
"
tmp/
logs/nginx-main_error-
#{
test_method_name
}
.log"
)
@access_log
=
File
.
expand_path
(
"
tmp/
logs/nginx-http_access-
#{
test_method_name
}
.log"
)
@error_log
=
File
.
expand_path
(
"
tmp/
logs/nginx-http_error-
#{
test_method_name
}
.log"
)
end
def
config_filename
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment