diff options
Diffstat (limited to 'bitbake/lib/bb/tests/fetch.py')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index c7a23407c1..41e1d8cf10 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -1247,8 +1247,9 @@ class SVNTest(FetcherTest): | |||
1247 | cwd=repo_dir) | 1247 | cwd=repo_dir) |
1248 | 1248 | ||
1249 | bb.process.run("svn co %s svnfetch_co" % self.repo_url, cwd=self.tempdir) | 1249 | bb.process.run("svn co %s svnfetch_co" % self.repo_url, cwd=self.tempdir) |
1250 | # Github will emulate SVN. Use this to check if we're downloding... | 1250 | # Github won't emulate SVN anymore (see https://github.blog/2023-01-20-sunsetting-subversion-support/) |
1251 | bb.process.run("svn propset svn:externals 'bitbake https://github.com/PhilipHazel/pcre2.git' .", | 1251 | # Use still accessible svn repo (only trunk to avoid longer downloads) |
1252 | bb.process.run("svn propset svn:externals 'bitbake https://svn.apache.org/repos/asf/serf/trunk' .", | ||
1252 | cwd=os.path.join(self.tempdir, 'svnfetch_co', 'trunk')) | 1253 | cwd=os.path.join(self.tempdir, 'svnfetch_co', 'trunk')) |
1253 | bb.process.run("svn commit --non-interactive -m 'Add external'", | 1254 | bb.process.run("svn commit --non-interactive -m 'Add external'", |
1254 | cwd=os.path.join(self.tempdir, 'svnfetch_co', 'trunk')) | 1255 | cwd=os.path.join(self.tempdir, 'svnfetch_co', 'trunk')) |
@@ -1276,8 +1277,8 @@ class SVNTest(FetcherTest): | |||
1276 | 1277 | ||
1277 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk')), msg="Missing trunk") | 1278 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk')), msg="Missing trunk") |
1278 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk', 'README.md')), msg="Missing contents") | 1279 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk', 'README.md')), msg="Missing contents") |
1279 | self.assertFalse(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/trunk')), msg="External dir should NOT exist") | 1280 | self.assertFalse(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/protocols')), msg="External dir should NOT exist") |
1280 | self.assertFalse(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/trunk', 'README')), msg="External README should NOT exit") | 1281 | self.assertFalse(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/protocols', 'fcgi_buckets.h')), msg="External fcgi_buckets.h should NOT exit") |
1281 | 1282 | ||
1282 | @skipIfNoSvn() | 1283 | @skipIfNoSvn() |
1283 | def test_external_svn(self): | 1284 | def test_external_svn(self): |
@@ -1290,8 +1291,8 @@ class SVNTest(FetcherTest): | |||
1290 | 1291 | ||
1291 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk')), msg="Missing trunk") | 1292 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk')), msg="Missing trunk") |
1292 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk', 'README.md')), msg="Missing contents") | 1293 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk', 'README.md')), msg="Missing contents") |
1293 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/trunk')), msg="External dir should exist") | 1294 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/protocols')), msg="External dir should exist") |
1294 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/trunk', 'README')), msg="External README should exit") | 1295 | self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'trunk/bitbake/protocols', 'fcgi_buckets.h')), msg="External fcgi_buckets.h should exit") |
1295 | 1296 | ||
1296 | class TrustedNetworksTest(FetcherTest): | 1297 | class TrustedNetworksTest(FetcherTest): |
1297 | def test_trusted_network(self): | 1298 | def test_trusted_network(self): |