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).
@@ -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',
],
)
