diff options
author | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-03-07 14:47:50 +0000 |
---|---|---|
committer | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-03-14 10:13:44 +0000 |
commit | 7ecf392b990c1f9610f84df2ae3ed4b72afa5e64 (patch) | |
tree | 36c11e06c5e57d577382489724a8bdeba16eeb12 | |
parent | 2daf893b302b3155f44517248a3cfe7063376a60 (diff) | |
download | buildstream-7ecf392b990c1f9610f84df2ae3ed4b72afa5e64.tar.gz |
tests: move templated tests from track_cross_junction.py into separate file
Move the templated tests in tests/frontend/track_cross_junction.py into
sources/generic/track_cross_junction.py
This is part of the preparation work for #944
-rw-r--r-- | tests/sources/generic/track_cross_junction.py (renamed from tests/frontend/track_cross_junction.py) | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/frontend/track_cross_junction.py b/tests/sources/generic/track_cross_junction.py index e01ea81d9..6a2a8001f 100644 --- a/tests/frontend/track_cross_junction.py +++ b/tests/sources/generic/track_cross_junction.py @@ -1,10 +1,33 @@ +# +# Copyright (C) 2018 Codethink Limited +# Copyright (C) 2019 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 <http://www.gnu.org/licenses/>. +# + import os import pytest + from tests.testutils import create_repo, ALL_REPO_KINDS, generate_junction from buildstream.plugintestutils import cli from buildstream import _yaml +# Project directory +TOP_DIR = os.path.dirname(os.path.realpath(__file__)) +DATA_DIR = os.path.join(TOP_DIR, 'project') + def generate_element(repo, element_path, dep_name=None): element = { |