diff options
| -rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 16f975b137..23c6338a46 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
| @@ -899,6 +899,7 @@ class FetcherNetworkTest(FetcherTest): | |||
| 899 | if os.path.exists(os.path.join(repo_path, 'bitbake-gitsm-test1')): | 899 | if os.path.exists(os.path.join(repo_path, 'bitbake-gitsm-test1')): |
| 900 | self.assertTrue(os.path.exists(os.path.join(repo_path, 'bitbake-gitsm-test1', 'bitbake')), msg='submodule of submodule missing') | 900 | self.assertTrue(os.path.exists(os.path.join(repo_path, 'bitbake-gitsm-test1', 'bitbake')), msg='submodule of submodule missing') |
| 901 | 901 | ||
| 902 | @skipIfNoNetwork() | ||
| 902 | def test_git_submodule_dbus_broker(self): | 903 | def test_git_submodule_dbus_broker(self): |
| 903 | # The following external repositories have show failures in fetch and unpack operations | 904 | # The following external repositories have show failures in fetch and unpack operations |
| 904 | # We want to avoid regressions! | 905 | # We want to avoid regressions! |
| @@ -916,6 +917,7 @@ class FetcherNetworkTest(FetcherTest): | |||
| 916 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/subprojects/c-sundry/config')), msg='Missing submodule config "subprojects/c-sundry"') | 917 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/subprojects/c-sundry/config')), msg='Missing submodule config "subprojects/c-sundry"') |
| 917 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/subprojects/c-utf8/config')), msg='Missing submodule config "subprojects/c-utf8"') | 918 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/subprojects/c-utf8/config')), msg='Missing submodule config "subprojects/c-utf8"') |
| 918 | 919 | ||
| 920 | @skipIfNoNetwork() | ||
| 919 | def test_git_submodule_CLI11(self): | 921 | def test_git_submodule_CLI11(self): |
| 920 | url = "gitsm://github.com/CLIUtils/CLI11;protocol=git;rev=bd4dc911847d0cde7a6b41dfa626a85aab213baf" | 922 | url = "gitsm://github.com/CLIUtils/CLI11;protocol=git;rev=bd4dc911847d0cde7a6b41dfa626a85aab213baf" |
| 921 | fetcher = bb.fetch.Fetch([url], self.d) | 923 | fetcher = bb.fetch.Fetch([url], self.d) |
| @@ -929,6 +931,7 @@ class FetcherNetworkTest(FetcherTest): | |||
| 929 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/json/config')), msg='Missing submodule config "extern/json"') | 931 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/json/config')), msg='Missing submodule config "extern/json"') |
| 930 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/sanitizers/config')), msg='Missing submodule config "extern/sanitizers"') | 932 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/sanitizers/config')), msg='Missing submodule config "extern/sanitizers"') |
| 931 | 933 | ||
| 934 | @skipIfNoNetwork() | ||
| 932 | def test_git_submodule_update_CLI11(self): | 935 | def test_git_submodule_update_CLI11(self): |
| 933 | """ Prevent regression on update detection not finding missing submodule, or modules without needed commits """ | 936 | """ Prevent regression on update detection not finding missing submodule, or modules without needed commits """ |
| 934 | url = "gitsm://github.com/CLIUtils/CLI11;protocol=git;rev=cf6a99fa69aaefe477cc52e3ef4a7d2d7fa40714" | 937 | url = "gitsm://github.com/CLIUtils/CLI11;protocol=git;rev=cf6a99fa69aaefe477cc52e3ef4a7d2d7fa40714" |
| @@ -948,6 +951,7 @@ class FetcherNetworkTest(FetcherTest): | |||
| 948 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/json/config')), msg='Missing submodule config "extern/json"') | 951 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/json/config')), msg='Missing submodule config "extern/json"') |
| 949 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/sanitizers/config')), msg='Missing submodule config "extern/sanitizers"') | 952 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/sanitizers/config')), msg='Missing submodule config "extern/sanitizers"') |
| 950 | 953 | ||
| 954 | @skipIfNoNetwork() | ||
| 951 | def test_git_submodule_aktualizr(self): | 955 | def test_git_submodule_aktualizr(self): |
| 952 | url = "gitsm://github.com/advancedtelematic/aktualizr;branch=master;protocol=git;rev=d00d1a04cc2366d1a5f143b84b9f507f8bd32c44" | 956 | url = "gitsm://github.com/advancedtelematic/aktualizr;branch=master;protocol=git;rev=d00d1a04cc2366d1a5f143b84b9f507f8bd32c44" |
| 953 | fetcher = bb.fetch.Fetch([url], self.d) | 957 | fetcher = bb.fetch.Fetch([url], self.d) |
| @@ -964,6 +968,7 @@ class FetcherNetworkTest(FetcherTest): | |||
| 964 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/third_party/googletest/config')), msg='Missing submodule config "third_party/googletest/config"') | 968 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/third_party/googletest/config')), msg='Missing submodule config "third_party/googletest/config"') |
| 965 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/third_party/HdrHistogram_c/config')), msg='Missing submodule config "third_party/HdrHistogram_c/config"') | 969 | self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/third_party/HdrHistogram_c/config')), msg='Missing submodule config "third_party/HdrHistogram_c/config"') |
| 966 | 970 | ||
| 971 | @skipIfNoNetwork() | ||
| 967 | def test_git_submodule_iotedge(self): | 972 | def test_git_submodule_iotedge(self): |
| 968 | """ Prevent regression on deeply nested submodules not being checked out properly, even though they were fetched. """ | 973 | """ Prevent regression on deeply nested submodules not being checked out properly, even though they were fetched. """ |
| 969 | 974 | ||
