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
Tim Head 2018-09-15 08:12:09 +02:00
rodzic 16079b9981
commit 535e77a1d6
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -95,11 +95,10 @@ class Repo2DockerTest(pytest.Function):
class LocalRepo(pytest.File):
def collect(self):
yield Repo2DockerTest(
self.fspath.basename, self,
'build', self,
args=[
'--appendix', 'RUN echo "appendix" > /tmp/appendix',
self.fspath.dirname,
'./verify',
],
)
yield Repo2DockerTest(
@ -107,6 +106,7 @@ class LocalRepo(pytest.File):
args=[
'--appendix', 'RUN echo "appendix" > /tmp/appendix',
self.fspath.dirname,
'./verify',
],
)