summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-04-23 15:35:58 +0200
committerJürg Billeter <j@bitron.ch>2020-04-25 09:19:49 +0200
commit968897f69af079658f2e1b85d6606d1b6fbd8235 (patch)
tree1c4b026fe371338e49379f6446389e9cb11dc925 /tests/integration
parent0307e55dcf0ae7155fa9d9d08a847957f0877545 (diff)
downloadbuildstream-968897f69af079658f2e1b85d6606d1b6fbd8235.tar.gz
Remove bst shell --sysroot
This is no longer needed now that we support caching buildtrees in CAS.
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/shell.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/integration/shell.py b/tests/integration/shell.py
index 2aa386730..7fa742f41 100644
--- a/tests/integration/shell.py
+++ b/tests/integration/shell.py
@@ -307,48 +307,6 @@ def test_workspace_visible(cli, datafiles):
assert result.output == workspace_hello
-# Test that '--sysroot' works
-@pytest.mark.datafiles(DATA_DIR)
-@pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox")
-@pytest.mark.xfail(HAVE_SANDBOX == "buildbox-run", reason="Not working with BuildBox")
-def test_sysroot(cli, tmpdir, datafiles):
- project = str(datafiles)
- base_element = "base/base-alpine.bst"
- # test element only needs to be something lightweight for this test
- test_element = "script/script.bst"
- checkout_dir = os.path.join(str(tmpdir), "alpine-sysroot")
- test_file = "hello"
-
- # Build and check out a sysroot
- res = cli.run(project=project, args=["build", base_element])
- res.assert_success()
- res = cli.run(project=project, args=["artifact", "checkout", base_element, "--directory", checkout_dir])
- res.assert_success()
-
- # Mutate the sysroot
- test_path = os.path.join(checkout_dir, test_file)
- with open(test_path, "w") as f:
- f.write("hello\n")
-
- # Shell into the sysroot and check the test file exists
- res = cli.run(
- project=project,
- args=[
- "shell",
- "--build",
- "--sysroot",
- checkout_dir,
- test_element,
- "--",
- "grep",
- "-q",
- "hello",
- "/" + test_file,
- ],
- )
- res.assert_success()
-
-
# Test system integration commands can access devices in /dev
@pytest.mark.datafiles(DATA_DIR)
@pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox")