Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
Jupyter Docker Stacks
Commits
167a0cb0
Commit
167a0cb0
authored
Dec 02, 2017
by
Peter Parente
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mount test on CI
parent
803dc0c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
base-notebook/test/test_container_options.py
base-notebook/test/test_container_options.py
+7
-5
No files found.
base-notebook/test/test_container_options.py
View file @
167a0cb0
...
...
@@ -90,23 +90,25 @@ def test_host_mount(container, tmpdir):
"""Container should start the notebook server properly when
the user home directory is host mounted.
"""
path
=
tmpdir
.
mkdir
(
'home'
)
.
join
(
'test.sh'
)
path
.
write
(
'''
\
home
=
tmpdir
.
mkdir
(
'home'
)
home
.
chmod
(
0o777
)
script
=
home
.
join
(
'test.sh'
)
script
.
write
(
'''
\
#!/bin/bash
echo "test content" > test.txt
cat test.txt
'''
)
path
.
chmod
(
0o755
)
script
.
chmod
(
0o755
)
c
=
container
.
run
(
volumes
=
{
path
.
dirname
:
{
'bind'
:
'/home/jovyan'
,
'mode'
:
'rw'
},
home
.
strpath
:
{
'bind'
:
'/home/jovyan'
,
'mode'
:
'rw'
},
},
command
=
[
'start.sh'
,
'/home/jovyan/test.sh'
]
)
rv
=
c
.
wait
(
timeout
=
5
)
stdout
=
c
.
logs
(
stdout
=
True
)
.
decode
(
'utf-8'
)
print
(
stdout
)
assert
rv
==
0
assert
'test content'
in
stdout
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