launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #25433
[Merge] ~pappacena/launchpad:testfix-recipe-index-buildpath into launchpad:master
Thiago F. Pappacena has proposed merging ~pappacena/launchpad:testfix-recipe-index-buildpath into launchpad:master.
Commit message:
Fixing test on OCI recipe index with build ARGs
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/391753
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~pappacena/launchpad:testfix-recipe-index-buildpath into launchpad:master.
diff --git a/lib/lp/oci/browser/tests/test_ocirecipe.py b/lib/lp/oci/browser/tests/test_ocirecipe.py
index 2c435d6..72f9c83 100644
--- a/lib/lp/oci/browser/tests/test_ocirecipe.py
+++ b/lib/lp/oci/browser/tests/test_ocirecipe.py
@@ -785,6 +785,7 @@ class TestOCIRecipeView(BaseTestOCIRecipeView):
recipe = self.makeOCIRecipe(
oci_project=oci_project, git_ref=ref, build_file="Dockerfile",
build_args={"VAR1": "123", "VAR2": "XXX"})
+ build_path = recipe.build_path
build = self.makeBuild(
recipe=recipe, status=BuildStatus.FULLYBUILT,
duration=timedelta(minutes=30))
@@ -797,12 +798,13 @@ class TestOCIRecipeView(BaseTestOCIRecipeView):
OCI project: %s
Source: ~test-person/\\+git/recipe-repository:master
Build file path: Dockerfile
+ Build context directory: %s
Build schedule: Built on request
Build-time\nARG variables: VAR1=123 VAR2=XXX
Latest builds
Status When complete Architecture
Successfully built 30 minutes ago 386
- """ % (oci_project_name, oci_project_display),
+ """ % (oci_project_name, oci_project_display, build_path),
self.getMainText(build.recipe))
def test_index_success_with_buildlog(self):