All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Murray <scott.murray@konsulko.com>
To: bitbake-devel@lists.openembedded.org
Subject: [1.40][PATCH 03/10] tests/fetch.py: Add alternative gitsm test case
Date: Tue, 12 Mar 2019 18:46:20 -0400	[thread overview]
Message-ID: <20190312224627.12667-4-scott.murray@konsulko.com> (raw)
In-Reply-To: <20190312224627.12667-1-scott.murray@konsulko.com>

From: Mark Hatle <mark.hatle@windriver.com>

In order to test the ssh processing in gitsm, we add an alternative
testcase that can be downloaded from git.yoctoproject.org.  However,
this test case requries (read) access, via ssh, to git.yoctoproject.org.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c8554cdc1287620fe8e8960561e614567879a010)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
 lib/bb/tests/fetch.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
index 6848095c..311c7013 100644
--- a/lib/bb/tests/fetch.py
+++ b/lib/bb/tests/fetch.py
@@ -893,7 +893,11 @@ class FetcherNetworkTest(FetcherTest):
 
     @skipIfNoNetwork()
     def test_git_submodule(self):
-        fetcher = bb.fetch.Fetch(["gitsm://git.yoctoproject.org/git-submodule-test;rev=f12e57f2edf0aa534cf1616fa983d165a92b0842"], self.d)
+        # URL with ssh submodules
+        url = "gitsm://git.yoctoproject.org/git-submodule-test;branch=ssh-gitsm-tests;rev=0d3ffc14bce95e8b3a21a0a67bfe4c4a96ba6350"
+        # Original URL (comment this if you have ssh access to git.yoctoproject.org)
+        url = "gitsm://git.yoctoproject.org/git-submodule-test;rev=f12e57f2edf0aa534cf1616fa983d165a92b0842"
+        fetcher = bb.fetch.Fetch([url], self.d)
         fetcher.download()
         # Previous cwd has been deleted
         os.chdir(os.path.dirname(self.unpackdir))
-- 
2.17.2



  parent reply	other threads:[~2019-03-12 22:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-12 22:46 [1.40][PATCH 0/10] Backport gitsm fetcher fixes Scott Murray
2019-03-12 22:46 ` [1.40][PATCH 01/10] gitsm.py: Fix when a submodule is defined, but not initialized Scott Murray
2019-03-12 22:46 ` [1.40][PATCH 02/10] gitsm.py: Add support for alternative URL formats from submodule files Scott Murray
2019-03-12 22:46 ` Scott Murray [this message]
2019-03-12 22:46 ` [1.40][PATCH 04/10] gitsm.py: Optimize code and attempt to resolve locking issue Scott Murray
2019-03-12 22:46 ` [1.40][PATCH 05/10] gitsm.py: revise unpack Scott Murray
2019-03-12 22:46 ` [1.40][PATCH 06/10] gitsm.py: Rework the shallow fetcher and test case Scott Murray
2019-03-12 22:46 ` [1.40][PATCH 07/10] gitsm.py: Refactor the functions and simplify the class Scott Murray
2019-03-12 22:46 ` [1.40][PATCH 08/10] gitsm.py: Fix relative URLs Scott Murray
2019-03-12 22:46 ` [1.40][PATCH 09/10] gitsmy.py: Fix unpack of submodules of submodules Scott Murray
2019-03-12 22:46 ` [1.40][PATCH 10/10] gitsm: The fetcher did not process some recursive submodules properly Scott Murray
2019-03-13  4:38 ` [1.40][PATCH 0/10] Backport gitsm fetcher fixes akuster808
2019-03-13 19:17 ` akuster808
2019-03-13 23:19   ` Mark Hatle
2019-03-14 15:27   ` Scott Murray
2019-03-14 23:04     ` akuster808

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190312224627.12667-4-scott.murray@konsulko.com \
    --to=scott.murray@konsulko.com \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.