summaryrefslogtreecommitdiff
path: root/tests/integration/shell.py
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-11-05 09:45:26 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-11-05 14:20:33 +0000
commite1abc20299d70a40a58f0df2cda000333cbec56b (patch)
treeb446f5b71d588c4ff780f42ef9183ef856fd9d86 /tests/integration/shell.py
parentc70b64bf33950f5e9b6589c417ecf1fbbb7af5fb (diff)
downloadbuildstream-e1abc20299d70a40a58f0df2cda000333cbec56b.tar.gz
Remove `commit`ting sources inside `Source()._generate_key`
`Stream.shell()` should check that the element's sources are cached before calling the shell. If the sources are not cached raise a StreamError and recommend a fetch. closes #1182
Diffstat (limited to 'tests/integration/shell.py')
-rw-r--r--tests/integration/shell.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/integration/shell.py b/tests/integration/shell.py
index a44f51609..49e9a5950 100644
--- a/tests/integration/shell.py
+++ b/tests/integration/shell.py
@@ -320,6 +320,10 @@ def test_workspace_visible(cli, datafiles):
# that we got the same content here
#
result = cli.run(project=project, args=[
+ 'source', 'fetch', element_name])
+ assert result.exit_code == 0
+
+ result = cli.run(project=project, args=[
'shell', '--build', element_name, '--', 'cat', 'hello.c'
])
assert result.exit_code == 0