kopia lustrzana https://github.com/jupyterhub/repo2docker
Switch order of local repository test collection
Feels more natural to first attempt building the image and then running the verify script in it. Changed the name of the two tests to make it easier to see which test failed (verify or build).pull/401/head
rodzic
16079b9981
commit
535e77a1d6
|
@ -95,11 +95,10 @@ class Repo2DockerTest(pytest.Function):
|
||||||
class LocalRepo(pytest.File):
|
class LocalRepo(pytest.File):
|
||||||
def collect(self):
|
def collect(self):
|
||||||
yield Repo2DockerTest(
|
yield Repo2DockerTest(
|
||||||
self.fspath.basename, self,
|
'build', self,
|
||||||
args=[
|
args=[
|
||||||
'--appendix', 'RUN echo "appendix" > /tmp/appendix',
|
'--appendix', 'RUN echo "appendix" > /tmp/appendix',
|
||||||
self.fspath.dirname,
|
self.fspath.dirname,
|
||||||
'./verify',
|
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
yield Repo2DockerTest(
|
yield Repo2DockerTest(
|
||||||
|
@ -107,6 +106,7 @@ class LocalRepo(pytest.File):
|
||||||
args=[
|
args=[
|
||||||
'--appendix', 'RUN echo "appendix" > /tmp/appendix',
|
'--appendix', 'RUN echo "appendix" > /tmp/appendix',
|
||||||
self.fspath.dirname,
|
self.fspath.dirname,
|
||||||
|
'./verify',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue