mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-27 01:30:18 +00:00
ensure images are build prior to running tests
Signed-off-by: bcambl <blayne@blaynecampbell.com>
This commit is contained in:
parent
e4a6dcd35c
commit
4c23964964
2 changed files with 8 additions and 1 deletions
|
@ -12,6 +12,9 @@ run_local = testinfra.get_backend(
|
|||
('test/centos.Dockerfile', 'pytest_pihole:centos'),
|
||||
('test/fedora.Dockerfile', 'pytest_pihole:fedora'),
|
||||
])
|
||||
# mark as 'build_stage' so we can ensure images are build first when tests
|
||||
# are executed in parallel. (not required when tests are executed serially)
|
||||
@pytest.mark.build_stage
|
||||
def test_build_pihole_image(image, tag):
|
||||
build_cmd = run_local('docker build -f {} -t {} .'.format(image, tag))
|
||||
if build_cmd.rc != 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue