Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
amrani
erp5
Commits
f8f67fbc
Commit
f8f67fbc
authored
Jun 17, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename 'link_to_testsuite' directory to 'software' directory
parent
308aa7fd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
erp5/tests/testERP5TestNode.py
erp5/tests/testERP5TestNode.py
+2
-2
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+5
-3
erp5/util/testnode/__init__.py
erp5/util/testnode/__init__.py
+2
-2
No files found.
erp5/tests/testERP5TestNode.py
View file @
f8f67fbc
...
...
@@ -27,7 +27,7 @@ class ERP5TestNode(TestCase):
self
.
_temp_dir
=
tempfile
.
mkdtemp
()
self
.
working_directory
=
os
.
path
.
join
(
self
.
_temp_dir
,
'testnode'
)
self
.
slapos_directory
=
os
.
path
.
join
(
self
.
_temp_dir
,
'slapos'
)
self
.
link_to_testsuite_directory
=
os
.
path
.
join
(
self
.
_temp_dir
,
'link_to_testsuit
e_directory'
)
self
.
software_directory
=
os
.
path
.
join
(
self
.
_temp_dir
,
'softwar
e_directory'
)
self
.
test_suite_directory
=
os
.
path
.
join
(
self
.
_temp_dir
,
'test_suite'
)
self
.
environment
=
os
.
path
.
join
(
self
.
_temp_dir
,
'environment'
)
self
.
log_directory
=
os
.
path
.
join
(
self
.
_temp_dir
,
'var/log/testnode'
)
...
...
@@ -39,7 +39,7 @@ class ERP5TestNode(TestCase):
os
.
mkdir
(
self
.
working_directory
)
os
.
mkdir
(
self
.
slapos_directory
)
os
.
mkdir
(
self
.
test_suite_directory
)
os
.
mkdir
(
self
.
link_to_testsuit
e_directory
)
os
.
mkdir
(
self
.
softwar
e_directory
)
os
.
mkdir
(
self
.
environment
)
os
.
mkdir
(
self
.
system_temp_folder
)
os
.
makedirs
(
self
.
log_directory
)
...
...
erp5/util/testnode/ScalabilityTestRunner.py
View file @
f8f67fbc
...
...
@@ -59,7 +59,9 @@ class ScalabilityTestRunner():
self
.
slapos_controler
.
createSlaposConfigurationFileAccount
(
key
,
certificate
,
self
.
testnode
.
config
)
self
.
remaining_software_installation_grid
=
{}
# Protection to prevent installation of softwares after checking
self
.
authorize_supply
=
True
# Used to simulate SlapOS answer (used as a queue)
...
...
@@ -165,8 +167,8 @@ class ScalabilityTestRunner():
return
{
'status_code'
:
1
}
# create an obfuscated link to the testsuite directory
self
.
testnode
.
log
(
"self.testnode.config['
link_to_testsuit
e_directory']
\
: %s"
%
(
self
.
testnode
.
config
[
'
link_to_testsuit
e_directory'
]))
self
.
testnode
.
log
(
"self.testnode.config['
softwar
e_directory']
\
: %s"
%
(
self
.
testnode
.
config
[
'
softwar
e_directory'
]))
self
.
testnode
.
log
(
"self.random_path
\
: %s"
%
(
self
.
random_path
))
path_to_suite
=
os
.
path
.
join
(
...
...
@@ -175,7 +177,7 @@ class ScalabilityTestRunner():
self
.
testnode
.
log
(
"path_to_suite
\
: %s"
%
(
path_to_suite
))
self
.
ofuscated_link_path
=
os
.
path
.
join
(
self
.
testnode
.
config
[
'
link_to_testsuit
e_directory'
],
self
.
testnode
.
config
[
'
softwar
e_directory'
],
self
.
random_path
)
if
(
not
os
.
path
.
lexists
(
self
.
ofuscated_link_path
)
and
os
.
path
.
exists
(
self
.
ofuscated_link_path
)
)
:
...
...
erp5/util/testnode/__init__.py
View file @
f8f67fbc
...
...
@@ -75,7 +75,7 @@ def main(*args):
config
.
readfp
(
parsed_argument
.
configuration_file
[
0
])
for
key
in
(
'slapos_directory'
,
'working_directory'
,
'test_suite_directory'
,
'log_directory'
,
'run_directory'
,
'srv_directory'
,
'proxy_host'
,
'
link_to_testsuit
e_directory'
,
'
softwar
e_directory'
,
'proxy_port'
,
'git_binary'
,
'zip_binary'
,
'node_quantity'
,
'test_node_title'
,
'ipv4_address'
,
'ipv6_address'
,
'test_suite_master_url'
,
'slapgrid_partition_binary'
,
'slapgrid_software_binary'
,
...
...
@@ -84,7 +84,7 @@ def main(*args):
CONFIG
[
key
]
=
config
.
get
(
'testnode'
,
key
)
for
key
in
(
'slapos_directory'
,
'working_directory'
,
'test_suite_directory'
,
'log_directory'
,
'run_directory'
,
'srv_directory'
,
'
link_to_testsuit
e_directory'
):
'log_directory'
,
'run_directory'
,
'srv_directory'
,
'
softwar
e_directory'
):
d
=
CONFIG
[
key
]
if
not
os
.
path
.
isdir
(
d
):
raise
ValueError
(
'Directory %r does not exists.'
%
d
)
...
...
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