summaryrefslogtreecommitdiff
path: root/tests/integration/shell.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2018-01-17 17:54:26 +0000
committerJürg Billeter <j@bitron.ch>2018-02-21 11:42:34 +0100
commit5476f2a1d4cc387c4868c1a69a7576a150db1ebc (patch)
treec7e63aacad303bdb06238e4820a992937e5697b7 /tests/integration/shell.py
parentcea43cb27f002a948558d0d4edc2b4e7131c9576 (diff)
downloadbuildstream-5476f2a1d4cc387c4868c1a69a7576a150db1ebc.tar.gz
tests/integration: Use a minimal custom base sysroot
We have been using the Freedesktop SDK binaries to provide a base system to run the integration tests. This works OK but it weighs in at 985MB of content, and there is no simple way to customize it so that we only download the bits we actually need. This commit changes the tests to use a custom sysroot based on the Alpine Linux distribution. The sysroot is 155MB unpacked, and packs down to a 27MB .tar.xz. This speeds up the integration tests significantly as we greatly reduce the amount of network traffic required and the amount of data that gets copied around when creating the staging area.
Diffstat (limited to 'tests/integration/shell.py')
-rw-r--r--tests/integration/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/shell.py b/tests/integration/shell.py
index 1e14f736c..6a66b7e4d 100644
--- a/tests/integration/shell.py
+++ b/tests/integration/shell.py
@@ -76,6 +76,6 @@ def test_no_shell(cli, tmpdir, datafiles):
result = cli.run(project=project, args=['build', element_name])
assert result.exit_code == 0
- result = execute_shell(cli, project, '/usr/bin/echo Pegasissies!', element=element_name)
+ result = execute_shell(cli, project, '/bin/echo Pegasissies!', element=element_name)
assert result.exit_code == 0
assert result.output == "Pegasissies!\n"