You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2022/07/26 08:48:26 UTC

[buildstream] 01/02: tests/integration/interactive_build.py: Use integration cache for sources

This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch tristan/source-set-ref-mapping-node
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit d08d0dd67edcb5f0fec6ae37aa008367f1be9272
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Tue Jul 26 17:41:24 2022 +0900

    tests/integration/interactive_build.py: Use integration cache for sources
    
    These tests don't need to redownload the alpine image for each test.
---
 tests/integration/interactive_build.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/integration/interactive_build.py b/tests/integration/interactive_build.py
index cf0492717..adf06f984 100644
--- a/tests/integration/interactive_build.py
+++ b/tests/integration/interactive_build.py
@@ -5,7 +5,7 @@ import os
 import pexpect
 import pytest
 
-from buildstream._testing import runcli
+from buildstream._testing import runcli, integration_cache
 from buildstream._testing._utils.site import HAVE_SANDBOX
 from tests.testutils.constants import PEXPECT_TIMEOUT_SHORT, PEXPECT_TIMEOUT_LONG
 
@@ -19,12 +19,12 @@ DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "project")
 # This fixture launches a `bst build` of given element, and returns a
 # `pexpect.spawn` object for the interactive session.
 @pytest.fixture
-def build_session(datafiles, element_name):
+def build_session(integration_cache, datafiles, element_name):
     project = str(datafiles)
 
     # Spawn interactive session using `configured()` context manager in order
     # to get the same config file as the `cli` fixture.
-    with runcli.configured(project) as config_file:
+    with runcli.configured(project, config={"sourcedir": integration_cache.sources}) as config_file:
         session = pexpect.spawn(
             "bst",
             [