Skip to content

Commit

Permalink
CI: xfail scratch bucket test
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger committed Sep 23, 2020
1 parent b12088d commit 3ae2f62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion run_tests.sh
Expand Up @@ -21,7 +21,7 @@ while [[ $(./kubectl -n ${CIRCLE_BRANCH} get pods jupyter-pangeo-2dbot -o 'jsonp

# Run the tests
echo "[Running tests]"
./kubectl -n staging exec jupyter-pangeo-2dbot /srv/conda/envs/notebook/bin/pytest /tmp/test.py
./kubectl -n staging exec jupyter-pangeo-2dbot /srv/conda/envs/notebook/bin/pytest -m "common or gcp" /tmp/test.py
RET=$?

echo "[Cleaning up]"
Expand Down
5 changes: 5 additions & 0 deletions test.py
@@ -1,8 +1,11 @@
import os

import pytest

import dask_gateway


@pytest.mark.common
class TestCommon:
"""Tests that should run on all deployments"""

Expand All @@ -13,8 +16,10 @@ def test_connect_cluster(self):
client.wait_for_workers(1)


@pytest.mark.gcp
class TestGCP:
"""GCP-specific tests"""
@pytest.mark.xfail(reason="PANGEO_SCRATCH is set in start")
def test_scratch_bucket(self):
scratch = os.environ["PANGEO_SCRATCH"]
assert scratch == "gs://pangeo-scratch/pangeo-bot/"

0 comments on commit 3ae2f62

Please sign in to comment.