diff options
author | Simon Glass <sjg@chromium.org> | 2017-11-12 21:52:14 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-11-22 18:05:38 -0700 |
commit | cb39a10979383921217e979b2aa0808babb877d3 (patch) | |
tree | 28b5d2abcbd3ac93bfc82c286ede6aa30debdd01 /tools/buildman/test.py | |
parent | 6c328f29752224f15b7f098d8676f9eeed269a85 (diff) |
buildman: Allow skipping of tests which use the network
Accessing the network slows down the test and limits the environment in
which it can be run. Add an option to disable network tests.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/test.py')
-rw-r--r-- | tools/buildman/test.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/buildman/test.py b/tools/buildman/test.py index 53ebc3756c..e81400f372 100644 --- a/tools/buildman/test.py +++ b/tools/buildman/test.py @@ -24,6 +24,8 @@ import commit import terminal import toolchain +use_network = True + settings_data = ''' # Buildman settings file @@ -410,8 +412,9 @@ class TestBuild(unittest.TestCase): def testToolchainDownload(self): """Test that we can download toolchains""" - self.assertEqual('https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/x86_64-gcc-4.9.0-nolibc_arm-unknown-linux-gnueabi.tar.xz', - self.toolchains.LocateArchUrl('arm')) + if use_network: + self.assertEqual('https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/x86_64-gcc-4.9.0-nolibc_arm-unknown-linux-gnueabi.tar.xz', + self.toolchains.LocateArchUrl('arm')) if __name__ == "__main__": |