Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
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
Mynij
slapos-mynij-dev
Commits
95977100
Commit
95977100
authored
Jul 15, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theia/test: make pexpect easier to debug
by logging the process output
parent
d1230d97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
software/theia/test/test.py
software/theia/test/test.py
+9
-0
No files found.
software/theia/test/test.py
View file @
95977100
...
...
@@ -89,6 +89,15 @@ class TestTheia(SlapOSInstanceTestCase):
# use a large enough terminal so that slapos proxy show table fit in the screen
process
.
setwinsize
(
5000
,
5000
)
# log process output for debugging
logger
=
logging
.
getLogger
(
'theia-shell'
)
class
DebugLogFile
:
def
write
(
self
,
msg
):
logger
.
info
(
"output from theia-shell: %s"
,
msg
)
def
flush
(
self
):
pass
process
.
logfile
=
DebugLogFile
()
process
.
expect_exact
(
'Standalone SlapOS: Formatting 20 partitions'
)
process
.
expect_exact
(
'Standalone SlapOS for computer `local` activated'
)
...
...
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