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 1
1
# -*- coding: utf-8 -*-
2
2
3
3
import os , shutil
4
+ import subprocess as sp
4
5
import pytest
5
- from pathlib import Path
6
6
import dataclasses as dc
7
7
8
8
from ..task import DockerTask
16
16
Plugins = ["cf" ]
17
17
18
18
need_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" ,
20
21
)
21
22
22
23
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
3
import os , shutil
4
+ import subprocess as sp
4
5
import pytest
5
6
import dataclasses as dc
6
7
16
17
17
18
18
19
need_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" ,
20
22
)
21
23
need_singularity = pytest .mark .skipif (
22
24
shutil .which ("singularity" ) is None , reason = "no singularity available"
You can’t perform that action at this time.
0 commit comments