summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/elements/filter.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/elements/filter.py b/tests/elements/filter.py
index 443f64d34..5fafa2d2d 100644
--- a/tests/elements/filter.py
+++ b/tests/elements/filter.py
@@ -507,6 +507,30 @@ def test_filter_pass_integration(datafiles, cli):
@pytest.mark.datafiles(os.path.join(DATA_DIR, "basic"))
+def test_filter_pass_integration_uncached(datafiles, cli):
+ project = str(datafiles)
+
+ # Passing integration commands should build nicely
+ result = cli.run(project=project, args=["build", "pass-integration.bst"])
+ result.assert_success()
+
+ # Delete the build dependency of the filter element.
+ # The built filter element should be usable even if the build dependency
+ # is not available in the local cache.
+ result = cli.run(project=project, args=["artifact", "delete", "input.bst"])
+ result.assert_success()
+
+ # Checking out the artifact should fail if we run integration commands, as
+ # the staged artifacts don't have a shell
+ checkout_dir = os.path.join(project, "pass")
+ result = cli.run(
+ project=project,
+ args=["artifact", "checkout", "--integrate", "--directory", checkout_dir, "pass-integration.bst"],
+ )
+ result.assert_main_error(ErrorDomain.STREAM, "missing-command")
+
+
+@pytest.mark.datafiles(os.path.join(DATA_DIR, "basic"))
def test_filter_stack_depend_failure(datafiles, cli):
project = str(datafiles)