Skip to content

Commit c2bb22c

Browse files
Local slurm pytest (#647)
* Ignore *.out files generated by SLURM from git * Skip interfaces test if eth0 not present
1 parent af936b5 commit c2bb22c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ ci/htcondor/environment.yml
2222
.vscode/
2323
ca.pem
2424
key.pem
25+
*.out

dask_jobqueue/tests/test_slurm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ def test_config_name_slurm_takes_custom_config():
206206

207207
@pytest.mark.env("slurm")
208208
def test_different_interfaces_on_scheduler_and_workers(loop):
209+
import psutil
210+
211+
if "eth0" not in psutil.net_if_addrs():
212+
pytest.skip("No eth0 interface found")
209213
with SLURMCluster(
210214
walltime="00:02:00",
211215
cores=1,

0 commit comments

Comments
 (0)