File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
33import os , shutil
4+ import subprocess as sp
45import pytest
5- from pathlib import Path
66import dataclasses as dc
77
88from ..task import DockerTask
1616 Plugins = ["cf" ]
1717
1818need_docker = pytest .mark .skipif (
19- shutil .which ("docker" ) is None , reason = "no docker within the container"
19+ shutil .which ("docker" ) is None or sp .call (["docker" , "info" ]),
20+ reason = "no docker within the container" ,
2021)
2122
2223
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
33import os , shutil
4+ import subprocess as sp
45import pytest
56import dataclasses as dc
67
1617
1718
1819need_docker = pytest .mark .skipif (
19- shutil .which ("docker" ) is None , reason = "no docker available"
20+ shutil .which ("docker" ) is None or sp .call (["docker" , "info" ]),
21+ reason = "no docker available" ,
2022)
2123need_singularity = pytest .mark .skipif (
2224 shutil .which ("singularity" ) is None , reason = "no singularity available"
You can’t perform that action at this time.
0 commit comments