From 206fc51a6cf57697f03e27508819eafaaee58317 Mon Sep 17 00:00:00 2001 From: Tristan Maat Date: Tue, 5 Sep 2017 04:22:13 -0500 Subject: Fix tests for other platforms --- tests/frontend/buildcheckout.py | 1 + tests/frontend/pull.py | 3 +++ tests/frontend/push.py | 3 +++ tests/frontend/track.py | 1 + 4 files changed, 8 insertions(+) (limited to 'tests/frontend') diff --git a/tests/frontend/buildcheckout.py b/tests/frontend/buildcheckout.py index 7f594ff51..819897928 100644 --- a/tests/frontend/buildcheckout.py +++ b/tests/frontend/buildcheckout.py @@ -1,6 +1,7 @@ import os import pytest from tests.testutils import cli, create_repo, ALL_REPO_KINDS +from tests.testutils.site import HAVE_OSTREE from buildstream import _yaml diff --git a/tests/frontend/pull.py b/tests/frontend/pull.py index 114cf9950..07d664c5f 100644 --- a/tests/frontend/pull.py +++ b/tests/frontend/pull.py @@ -2,6 +2,7 @@ import os import shutil import pytest from tests.testutils import cli, create_artifact_share +from tests.testutils.site import IS_LINUX from buildstream import _yaml @@ -24,6 +25,7 @@ def assert_shared(cli, share, project, element_name): .format(share.repo, element_name)) +@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.parametrize( 'user_url, project_url, override_url', [ @@ -107,6 +109,7 @@ def test_push_pull(cli, tmpdir, datafiles, user_url, project_url, override_url): assert state == 'cached' +@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_push_pull_all(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) diff --git a/tests/frontend/push.py b/tests/frontend/push.py index c1131f901..89a864d16 100644 --- a/tests/frontend/push.py +++ b/tests/frontend/push.py @@ -1,6 +1,7 @@ import os import pytest from tests.testutils import cli, create_artifact_share +from tests.testutils.site import IS_LINUX from buildstream import _yaml @@ -23,6 +24,7 @@ def assert_shared(cli, share, project, element_name): .format(share.repo, element_name)) +@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.parametrize( 'user_url, project_url, override_url', [ @@ -82,6 +84,7 @@ def test_push(cli, tmpdir, datafiles, user_url, project_url, override_url): assert_shared(cli, share, project, 'target.bst') +@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_push_all(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) diff --git a/tests/frontend/track.py b/tests/frontend/track.py index af899bd04..0ed0b239e 100644 --- a/tests/frontend/track.py +++ b/tests/frontend/track.py @@ -1,6 +1,7 @@ import os import pytest from tests.testutils import cli, create_repo, ALL_REPO_KINDS +from tests.testutils.site import HAVE_OSTREE from buildstream import _yaml -- cgit v1.2.1