diff options
author | Pavel Zhukov <pavel@zhukoff.net> | 2022-08-26 10:40:31 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-01 10:07:00 +0100 |
commit | af64b9b31ba92321537abc67edb54b4db8abc5cc (patch) | |
tree | 4d790a72c31d05d7cb35556a578723b748487e11 /bitbake | |
parent | 492ec14a372f6504ad232f60334823af27366cef (diff) | |
download | poky-af64b9b31ba92321537abc67edb54b4db8abc5cc.tar.gz |
bitbake: tests: Add test for possible gitsm deadlock
(Bitbake rev: b0506480baa9bcf3ef645b0aed5a07ad9950245c)
Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index e69b4b05f3..b4ed691f33 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -1191,6 +1191,15 @@ class FetcherNetworkTest(FetcherTest): | |||
1191 | self.assertTrue(os.path.exists(os.path.join(repo_path, 'edgelet/hsm-sys/azure-iot-hsm-c/deps/utpm/deps/c-utility/testtools/umock-c/deps/ctest/README.md')), msg='Missing submodule checkout') | 1191 | self.assertTrue(os.path.exists(os.path.join(repo_path, 'edgelet/hsm-sys/azure-iot-hsm-c/deps/utpm/deps/c-utility/testtools/umock-c/deps/ctest/README.md')), msg='Missing submodule checkout') |
1192 | self.assertTrue(os.path.exists(os.path.join(repo_path, 'edgelet/hsm-sys/azure-iot-hsm-c/deps/utpm/deps/c-utility/testtools/umock-c/deps/testrunner/readme.md')), msg='Missing submodule checkout') | 1192 | self.assertTrue(os.path.exists(os.path.join(repo_path, 'edgelet/hsm-sys/azure-iot-hsm-c/deps/utpm/deps/c-utility/testtools/umock-c/deps/testrunner/readme.md')), msg='Missing submodule checkout') |
1193 | 1193 | ||
1194 | @skipIfNoNetwork() | ||
1195 | def test_git_submodule_reference_to_parent(self): | ||
1196 | self.recipe_url = "gitsm://github.com/gflags/gflags.git;protocol=https;branch=master" | ||
1197 | self.d.setVar("SRCREV", "14e1138441bbbb584160cb1c0a0426ec1bac35f1") | ||
1198 | with Timeout(60): | ||
1199 | fetcher = bb.fetch.Fetch([self.recipe_url], self.d) | ||
1200 | with self.assertRaises(bb.fetch2.FetchError): | ||
1201 | fetcher.download() | ||
1202 | |||
1194 | class SVNTest(FetcherTest): | 1203 | class SVNTest(FetcherTest): |
1195 | def skipIfNoSvn(): | 1204 | def skipIfNoSvn(): |
1196 | import shutil | 1205 | import shutil |