File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed
conda/r3.6-target-repo-dir-flag Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
import sys
3
3
import os
4
+ from glob import glob
4
5
5
6
# conda should still be in /srv/conda
6
7
# and Python should still be in $NB_PYTHON_PREFIX
15
16
16
17
# Repo should be writable
17
18
assert os .access ("/srv/repo" , os .W_OK )
19
+
20
+ # All files in repo dir should be readable and writeable
21
+ for path in glob ("/src/repo/**/*" , recursive = True ):
22
+ assert os .access (path , os .R_OK )
23
+ assert os .access (path , os .W_OK )
24
+
25
+ # Should be able to make a new file
26
+ with open ("/srv/repo/writeable" , "w" ) as fp :
27
+ fp .write ("writeable" )
Original file line number Diff line number Diff line change 1
1
"""
2
2
Custom test collector for our integration tests.
3
3
4
- Each directory that has a script named 'verify' is considered
5
- a test. jupyter-repo2docker is run on that directory,
6
- and then ./verify is run inside the built container. It should
7
- return a non-zero exit code for the test to be considered a
8
- success.
4
+
5
+ Test lifecycle:
6
+ - Find all directories that contain `verify` or `*.repos.yaml`
7
+ - If `verify` is found:
8
+ - Run `jupyter-repo2docker` on the test directory.
9
+ - Extra arguments may be added as YAML list of strings in `extra-args.yaml`.
10
+ - Run `./verify` inside the built container.
11
+ - It should return a non-zero exit code for the test to be considered a
12
+ successful.
13
+ - If a `*.repos.yaml` is found:
14
+ - For each entry of the form `{name, url, ref, verify}`
15
+ - Run `jupyter-repo2docker` with the `url` and `ref`
16
+ - Run the `verify` inside the built container
9
17
"""
10
18
11
19
import os
You can’t perform that action at this time.
0 commit comments