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
d45e68c2
Commit
d45e68c2
authored
Jun 17, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move launchable + change creation sym-link conditions
parent
dfa35f30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
erp5/util/testnode/ScalabilityTestRunner.py
erp5/util/testnode/ScalabilityTestRunner.py
+15
-11
No files found.
erp5/util/testnode/ScalabilityTestRunner.py
View file @
d45e68c2
...
@@ -156,6 +156,14 @@ class ScalabilityTestRunner():
...
@@ -156,6 +156,14 @@ class ScalabilityTestRunner():
self
.
error_message
=
test_configuration
[
'error_message'
]
self
.
error_message
=
test_configuration
[
'error_message'
]
self
.
random_path
=
test_configuration
[
'random_path'
]
self
.
random_path
=
test_configuration
[
'random_path'
]
# Avoid the test if it is not launchable
if
not
self
.
launchable
:
self
.
testnode
.
log
(
"Test suite %s is not actually launchable with
\
the current cluster configuration."
%
(
node_test_suite
.
test_suite_title
,))
self
.
testnode
.
log
(
"ERP5 Master indicates : %s"
%
(
self
.
error_message
,))
# error : wich code to return ?
return
{
'status_code'
:
1
}
# create an obfuscated link to the testsuite directory
# create an obfuscated link to the testsuite directory
self
.
testnode
.
log
(
"self.testnode.config['link_to_testsuite_directory']
\
self
.
testnode
.
log
(
"self.testnode.config['link_to_testsuite_directory']
\
: %s"
%
(
self
.
testnode
.
config
[
'link_to_testsuite_directory'
]))
: %s"
%
(
self
.
testnode
.
config
[
'link_to_testsuite_directory'
]))
...
@@ -169,20 +177,16 @@ class ScalabilityTestRunner():
...
@@ -169,20 +177,16 @@ class ScalabilityTestRunner():
self
.
ofuscated_link_path
=
os
.
path
.
join
(
self
.
ofuscated_link_path
=
os
.
path
.
join
(
self
.
testnode
.
config
[
'link_to_testsuite_directory'
],
self
.
testnode
.
config
[
'link_to_testsuite_directory'
],
self
.
random_path
)
self
.
random_path
)
if
(
os
.
path
.
lexists
(
self
.
ofuscated_link_path
)
or
if
(
not
os
.
path
.
lexists
(
self
.
ofuscated_link_path
)
and
os
.
path
.
exists
(
self
.
ofuscated_link_path
)
)
:
os
.
path
.
exists
(
self
.
ofuscated_link_path
)
)
:
os
.
remove
(
self
.
ofuscated_link_path
)
try
:
os
.
symlink
(
path_to_suite
,
self
.
ofuscated_link_path
)
except
:
raise
ValueError
(
"testnode, Unable to create symbolic link to the testsuite."
)
self
.
testnode
.
log
(
"Sym link : %s %s"
%
(
path_to_suite
,
self
.
ofuscated_link_path
))
self
.
testnode
.
log
(
"Sym link : %s %s"
%
(
path_to_suite
,
self
.
ofuscated_link_path
))
os
.
symlink
(
path_to_suite
,
self
.
ofuscated_link_path
)
if
not
self
.
launchable
:
self
.
testnode
.
log
(
"Test suite %s is not actually launchable with
\
the current cluster configuration."
%
(
node_test_suite
.
test_suite_title
,))
self
.
testnode
.
log
(
"ERP5 Master indicates : %s"
%
(
self
.
error_message
,))
# error : wich code to return ?
return
{
'status_code'
:
1
}
involved_nodes_computer_guid
=
test_configuration
[
'involved_nodes_computer_guid'
]
involved_nodes_computer_guid
=
test_configuration
[
'involved_nodes_computer_guid'
]
configuration_list
=
test_configuration
[
'configuration_list'
]
configuration_list
=
test_configuration
[
'configuration_list'
]
launcher_nodes_computer_guid
=
test_configuration
[
'launcher_nodes_computer_guid'
]
launcher_nodes_computer_guid
=
test_configuration
[
'launcher_nodes_computer_guid'
]
...
...
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