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/03/30 05:40:59 UTC
[buildstream] 29/37: tests/sources/no_fetch_cached.py: Use tar repo instead of git repo
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/remove-plugins
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 005310da397994b9d601430df4dccf2672f51675
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Wed Mar 30 13:29:43 2022 +0900
tests/sources/no_fetch_cached.py: Use tar repo instead of git repo
---
tests/sources/no_fetch_cached.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/sources/no_fetch_cached.py b/tests/sources/no_fetch_cached.py
index 0092d33..7819b90 100644
--- a/tests/sources/no_fetch_cached.py
+++ b/tests/sources/no_fetch_cached.py
@@ -16,13 +16,12 @@ DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "no-fetch-c
# Tests #
##################################################################
# Test that fetch() is not called for cached sources
-@pytest.mark.skipif(HAVE_GIT is False, reason="git is not available")
@pytest.mark.datafiles(DATA_DIR)
def test_no_fetch_cached(cli, tmpdir, datafiles):
project = str(datafiles)
# Create the repo from 'files' subdir
- repo = create_repo("git", str(tmpdir))
+ repo = create_repo("tar", str(tmpdir))
ref = repo.create(os.path.join(project, "files"))
# Write out test target with a cached and a non-cached source