summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/tests/fetch.py9
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
1194class SVNTest(FetcherTest): 1203class SVNTest(FetcherTest):
1195 def skipIfNoSvn(): 1204 def skipIfNoSvn():
1196 import shutil 1205 import shutil