summaryrefslogtreecommitdiff
path: root/tests/frontend/artifact.py
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.co.uk>2019-08-08 12:40:53 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-08-09 09:50:15 +0000
commit0b18d8207e46dbf0420eb0ae329b5346e80c7b7b (patch)
tree0fc5d79b7fbbd1d1dd00be9dd6937425fb3db60d /tests/frontend/artifact.py
parentda0c998a8acbaef5177ccdd5d337b081b0a04f5c (diff)
downloadbuildstream-0b18d8207e46dbf0420eb0ae329b5346e80c7b7b.tar.gz
Frontend: Fix bst artifact log
This command now fetches the absolute paths of the log files in the local CAS cache and opens a pager for each path. The test has also been updated to ensure that a log file is actually obtained.
Diffstat (limited to 'tests/frontend/artifact.py')
-rw-r--r--tests/frontend/artifact.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/frontend/artifact.py b/tests/frontend/artifact.py
index eb187a168..177be8c30 100644
--- a/tests/frontend/artifact.py
+++ b/tests/frontend/artifact.py
@@ -56,6 +56,9 @@ def test_artifact_log(cli, datafiles):
assert result.exit_code == 0
log = result.output
+ # Assert that there actually was a log file
+ assert log != ''
+
# Read the log via the key
result = cli.run(project=project, args=['artifact', 'log', 'test/target/' + key])
assert result.exit_code == 0