From 09ec7d6979f0edccf1a79cc1610f92f5a45cf687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Sun, 12 May 2019 12:44:34 -0700 Subject: Remove OSTree plugin; It lives now in the bst-plugins-experimental repo --- tests/sources/ostree.py | 60 ------------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 tests/sources/ostree.py (limited to 'tests/sources') diff --git a/tests/sources/ostree.py b/tests/sources/ostree.py deleted file mode 100644 index aefad68fa..000000000 --- a/tests/sources/ostree.py +++ /dev/null @@ -1,60 +0,0 @@ -# -# Copyright (C) 2018 Bloomberg Finance LP -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library. If not, see . -# -# Authors: William Salmon -# - -# Pylint doesn't play well with fixtures and dependency injection from pytest -# pylint: disable=redefined-outer-name - -import os -import pytest - -from buildstream._exceptions import ErrorDomain -from buildstream import _yaml -from buildstream.testing import cli # pylint: disable=unused-import -from buildstream.testing import create_repo - -DATA_DIR = os.path.join( - os.path.dirname(os.path.realpath(__file__)), - 'ostree', -) - - -@pytest.mark.datafiles(os.path.join(DATA_DIR, 'template')) -def test_submodule_track_no_ref_or_track(cli, tmpdir, datafiles): - project = str(datafiles) - - # Create the repo from 'repofiles' subdir - repo = create_repo('ostree', str(tmpdir)) - repo.create(os.path.join(project, 'repofiles')) - - # Write out our test target - ostreesource = repo.source_config(ref=None) - ostreesource.pop('track') - element = { - 'kind': 'import', - 'sources': [ - ostreesource - ] - } - - _yaml.dump(element, os.path.join(project, 'target.bst')) - - # Track will encounter an inconsistent submodule without any ref - result = cli.run(project=project, args=['show', 'target.bst']) - result.assert_main_error(ErrorDomain.SOURCE, "missing-track-and-ref") - result.assert_task_error(None, None) -- cgit v1.2.1