Просмотр исходного кода

support/testing: do not use s.b.o

Currently, the runtime tests will use the sources.buildroot.org backup
mirror, which is the default setup.

However, in some cases we do not want to use the backup site, because we
want to ensure that the download actually works.

This is the case for vendored packages, like cargo or golang packages,
for whbich we want to check that gthe download still works when we
update the rust or go versions, or when our download helpers change.

So, disable the use of the backup site in all runtime tests, and drop
the no-longer needed special cases.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Yann E. MORIN 10 месяцев назад
Родитель
Сommit
559bb33ae7

+ 1 - 0
support/testing/infra/basetest.py

@@ -37,6 +37,7 @@ class BRConfigTest(unittest.TestCase):
         super(BRConfigTest, self).__init__(names)
         self.testname = self.__class__.__name__
         self.builddir = self.outputdir and os.path.join(self.outputdir, self.testname)
+        self.config += '\nBR2_BACKUP_SITE=""\n'
         self.config += '\nBR2_DL_DIR="{}"\n'.format(self.downloaddir)
         self.config += "\nBR2_JLEVEL={}\n".format(self.jlevel)
 

+ 1 - 4
support/testing/tests/download/test_git.py

@@ -7,10 +7,7 @@ import infra
 
 
 class GitTestBase(infra.basetest.BRConfigTest):
-    config = \
-        """
-        BR2_BACKUP_SITE=""
-        """
+    config = ""
     gitremotedir = infra.filepath("tests/download/git-remote")
     gitremote = None
 

+ 1 - 4
support/testing/tests/download/test_gitforge.py

@@ -5,10 +5,7 @@ import infra
 
 
 class GitforgeTestBase(infra.basetest.BRConfigTest):
-    config = \
-        """
-        BR2_BACKUP_SITE=""
-        """
+    config = ""
 
     def setUp(self):
         super(GitforgeTestBase, self).setUp()

+ 1 - 3
support/testing/tests/download/test_ssh.py

@@ -7,9 +7,7 @@ import infra
 
 
 class SSHTestBase(infra.basetest.BRConfigTest):
-    config = infra.basetest.MINIMAL_CONFIG + '''
-BR2_BACKUP_SITE=""
-'''
+    config = infra.basetest.MINIMAL_CONFIG
     sshd_test_dir = infra.filepath("tests/download/sshd")
     sshd = None
 

+ 0 - 1
support/testing/tests/package/test_rust.py

@@ -70,7 +70,6 @@ class TestRustVendoring(infra.basetest.BRConfigTest):
         BR2_PACKAGE_RIPGREP=y
         BR2_PACKAGE_PYTHON3=y
         BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y
-        BR2_BACKUP_SITE=""
         """
 
     def setUp(self):