Skip to content

Commit

Permalink
Local slurm pytest (#647)
Browse files Browse the repository at this point in the history
* Ignore *.out files generated by SLURM from git

* Skip interfaces test if eth0 not present
  • Loading branch information
jacobtomlinson authored Aug 6, 2024
1 parent af936b5 commit c2bb22c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ ci/htcondor/environment.yml
.vscode/
ca.pem
key.pem
*.out
4 changes: 4 additions & 0 deletions dask_jobqueue/tests/test_slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ def test_config_name_slurm_takes_custom_config():

@pytest.mark.env("slurm")
def test_different_interfaces_on_scheduler_and_workers(loop):
import psutil

if "eth0" not in psutil.net_if_addrs():
pytest.skip("No eth0 interface found")
with SLURMCluster(
walltime="00:02:00",
cores=1,
Expand Down

0 comments on commit c2bb22c

Please sign in to comment.