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
Labels
Merge Requests
19
Merge Requests
19
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
3160c589
Commit
3160c589
authored
May 03, 2020
by
Jérome Perrin
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP log
parent
ec94994c
Pipeline
#9344
failed with stage
Changes
1
Pipelines
2
Show 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(
if
debug
:
unittest
.
installHandler
()
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
)
return
setUpModule
,
SlapOSInstanceTestCase_
...
...
@@ -362,7 +369,9 @@ def installSoftwareUrlList(cls, software_url_list, max_retry=2, debug=False):
cls
.
slap
.
waitForSoftware
(
max_retry
=
max_retry
,
debug
=
debug
)
_storeSoftwareSnapshot
(
'setupModule'
)
for
software_url
in
software_url_list
:
cls
.
logger
.
debug
(
"Checking software %s"
,
software_url
)
checkSoftware
(
cls
.
slap
,
software_url
)
cls
.
logger
.
debug
(
"Done checking software %s"
,
software_url
)
except
BaseException
as
e
:
if
not
debug
:
cls
.
logger
.
exception
(
"Error building software, removing"
)
...
...
Jérome Perrin
@jerome
·
May 08, 2020
Owner
oops, why did I merge this ...
oops, why did I merge this ...
Jérome Perrin
@jerome
mentioned in commit
df0f1bd1
·
May 08, 2020
mentioned in commit
df0f1bd1
mentioned in commit df0f1bd1d5d07c260dc510c9617aef9fb5df9ede
Toggle commit list
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