Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Léo-Paul Géneau
slapos.core
Commits
3160c589
Commit
3160c589
authored
May 03, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP log
parent
ec94994c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
slapos/testing/testcase.py
slapos/testing/testcase.py
+10
-1
No files found.
slapos/testing/testcase.py
View file @
3160c589
...
@@ -152,7 +152,14 @@ def makeModuleSetUpAndTestCaseClass(
...
@@ -152,7 +152,14 @@ def makeModuleSetUpAndTestCaseClass(
if
debug
:
if
debug
:
unittest
.
installHandler
()
unittest
.
installHandler
()
logging
.
basicConfig
(
logging
.
basicConfig
(
level
=
logging
.
DEBUG
if
(
verbose
or
debug
)
else
logging
.
WARNING
)
level
=
logging
.
DEBUG
,
format
=
'%(asctime)s - %(name)s - %(levelname)s - %(message)s'
,
filename
=
os
.
path
.
join
(
slap
.
_base_directory
,
'var'
,
'log'
,
'test.log'
))
logger
=
logging
.
getLogger
()
console_handler
=
logging
.
StreamHandler
()
console_handler
.
setLevel
(
logging
.
DEBUG
if
(
verbose
or
debug
)
else
logging
.
WARNING
)
logger
.
addHandler
(
console_handler
)
installSoftwareUrlList
(
cls
,
[
software_url
],
debug
=
debug
)
installSoftwareUrlList
(
cls
,
[
software_url
],
debug
=
debug
)
return
setUpModule
,
SlapOSInstanceTestCase_
return
setUpModule
,
SlapOSInstanceTestCase_
...
@@ -362,7 +369,9 @@ def installSoftwareUrlList(cls, software_url_list, max_retry=2, debug=False):
...
@@ -362,7 +369,9 @@ def installSoftwareUrlList(cls, software_url_list, max_retry=2, debug=False):
cls
.
slap
.
waitForSoftware
(
max_retry
=
max_retry
,
debug
=
debug
)
cls
.
slap
.
waitForSoftware
(
max_retry
=
max_retry
,
debug
=
debug
)
_storeSoftwareSnapshot
(
'setupModule'
)
_storeSoftwareSnapshot
(
'setupModule'
)
for
software_url
in
software_url_list
:
for
software_url
in
software_url_list
:
cls
.
logger
.
debug
(
"Checking software %s"
,
software_url
)
checkSoftware
(
cls
.
slap
,
software_url
)
checkSoftware
(
cls
.
slap
,
software_url
)
cls
.
logger
.
debug
(
"Done checking software %s"
,
software_url
)
except
BaseException
as
e
:
except
BaseException
as
e
:
if
not
debug
:
if
not
debug
:
cls
.
logger
.
exception
(
"Error building software, removing"
)
cls
.
logger
.
exception
(
"Error building software, removing"
)
...
...
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