ssssam commented on code in PR #1719:
URL: https://github.com/apache/buildstream/pull/1719#discussion_r946497164
##########
tests/integration/shellbuildtrees.py:
##########
@@ -326,6 +326,40 @@ def
test_shell_pull_cached_buildtree(share_with_buildtrees, datafiles, cli, pull
assert "Hi" in result.output
+#
+# Test behavior of shelling into a buildtree by its artifact name
+#
[email protected](DATA_DIR)
[email protected](not HAVE_SANDBOX, reason="Only available with a
functioning sandbox")
+def test_shell_pull_artifact_cached_buildtree(share_with_buildtrees,
datafiles, cli):
+ project = str(datafiles)
+ artifact_name =
"test/build-shell-buildtree/4a47c98a10df39e65e99d471f96edc5b58d4ea5b9b1f221d0be832a8124b8099"
+
+ cli.configure({"artifacts": {"servers": [{"url":
share_with_buildtrees.repo}]}})
+
+ # Run the shell and request that required artifacts and buildtrees should
be pulled
+ result = cli.run(
+ project=project,
+ args=[
+ "--pull-buildtrees",
+ "shell",
+ "--build",
+ "--use-buildtree",
+ artifact_name,
+ "--",
+ "cat",
+ # We don't preserve the working directory in artifacts, so we will
executing be at /
Review Comment:
"so we will executing be at /" -- word order / typo ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]