summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPhil Dawson <phil.dawson@codethink.co.uk>2018-11-19 09:33:17 +0000
committerPhil Dawson <phil.dawson@codethink.co.uk>2018-12-12 14:43:40 +0000
commit85c61894d8871f6096fbd164280eb529981b40c6 (patch)
treecdbf5f7a621478d6043834939ce47c6aee7c8d9f /tests
parentc2efeba064f30c9bdbb4e370b1911dc50a78ff9b (diff)
downloadbuildstream-85c61894d8871f6096fbd164280eb529981b40c6.tar.gz
Remove source bundle command
This is part of the work towards #672
Diffstat (limited to 'tests')
-rw-r--r--tests/completions/completions.py1
-rw-r--r--tests/frontend/help.py1
-rw-r--r--tests/frontend/source_bundle.py48
3 files changed, 0 insertions, 50 deletions
diff --git a/tests/completions/completions.py b/tests/completions/completions.py
index af35fb23a..9b32baadd 100644
--- a/tests/completions/completions.py
+++ b/tests/completions/completions.py
@@ -16,7 +16,6 @@ MAIN_COMMANDS = [
'shell ',
'show ',
'source-checkout ',
- 'source-bundle ',
'track ',
'workspace '
]
diff --git a/tests/frontend/help.py b/tests/frontend/help.py
index bdafe851b..2a0c502e3 100644
--- a/tests/frontend/help.py
+++ b/tests/frontend/help.py
@@ -25,7 +25,6 @@ def test_help_main(cli):
('push'),
('shell'),
('show'),
- ('source-bundle'),
('track'),
('workspace')
])
diff --git a/tests/frontend/source_bundle.py b/tests/frontend/source_bundle.py
deleted file mode 100644
index f72e80a3b..000000000
--- a/tests/frontend/source_bundle.py
+++ /dev/null
@@ -1,48 +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 <http://www.gnu.org/licenses/>.
-#
-# Authors: Chandan Singh <csingh43@bloomberg.net>
-#
-
-import os
-import tarfile
-
-import pytest
-
-from tests.testutils import cli
-
-# Project directory
-DATA_DIR = os.path.join(
- os.path.dirname(os.path.realpath(__file__)),
- "project",
-)
-
-
-@pytest.mark.datafiles(DATA_DIR)
-def test_source_bundle(cli, tmpdir, datafiles):
- project_path = os.path.join(datafiles.dirname, datafiles.basename)
- element_name = 'source-bundle/source-bundle-hello.bst'
- normal_name = 'source-bundle-source-bundle-hello'
-
- # Verify that we can correctly produce a source-bundle
- args = ['source-bundle', element_name, '--directory', str(tmpdir)]
- result = cli.run(project=project_path, args=args)
- result.assert_success()
-
- # Verify that the source-bundle contains our sources and a build script
- with tarfile.open(os.path.join(str(tmpdir), '{}.tar.gz'.format(normal_name))) as bundle:
- assert os.path.join(normal_name, 'source', normal_name, 'llamas.txt') in bundle.getnames()
- assert os.path.join(normal_name, 'build.sh') in bundle.getnames()