support/testing: drop python2 tests
Python2 for the target is about to get removed, so drop the tests using it. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
6e9ecaa0c9
commit
f697096a77
@ -1,6 +0,0 @@
|
||||
import subprocess32
|
||||
|
||||
output = subprocess32.check_output(["ls", "-l", "/dev/null"])
|
||||
print(output)
|
||||
assert("/dev/null" in output)
|
||||
assert("No such" not in output)
|
@ -45,14 +45,6 @@ class TestBmapTools(BRTest):
|
||||
self.assertRunOk(cmd, timeout=20)
|
||||
|
||||
|
||||
class TestPy2BmapTools(TestBmapTools):
|
||||
__test__ = True
|
||||
config = TestBmapTools.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
"""
|
||||
|
||||
|
||||
class TestPy3BmapTools(TestBmapTools):
|
||||
__test__ = True
|
||||
config = TestBmapTools.config + \
|
||||
|
@ -33,14 +33,6 @@ class TestCrudiniBase(TestPythonPackageBase):
|
||||
self.assertEqual(out, ['this-is-the-magic-value'])
|
||||
|
||||
|
||||
class TestCrudiniPy2(TestCrudiniBase):
|
||||
__test__ = True
|
||||
config = TestCrudiniBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
"""
|
||||
|
||||
|
||||
class TestCrudiniPy3(TestCrudiniBase):
|
||||
__test__ = True
|
||||
config = TestCrudiniBase.config + \
|
||||
|
@ -1,18 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Libftdi1(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_LIBFTDI1=y
|
||||
BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_libftdi1.py"]
|
||||
timeout = 40
|
||||
|
||||
|
||||
class TestPythonPy3Libftdi1(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
@ -39,20 +39,6 @@ class TestPythonBase(infra.basetest.BRTest):
|
||||
self.assertEqual(exit_code, 1)
|
||||
|
||||
|
||||
class TestPython2(TestPythonBase):
|
||||
config = TestPythonBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
"""
|
||||
|
||||
def test_run(self):
|
||||
self.login()
|
||||
self.version_test("Python 2")
|
||||
self.math_floor_test()
|
||||
self.libc_time_test()
|
||||
self.zlib_test()
|
||||
|
||||
|
||||
class TestPython3(TestPythonBase):
|
||||
config = TestPythonBase.config + \
|
||||
"""
|
||||
|
@ -27,15 +27,6 @@ class TestPythonArgh(TestPythonPackageBase):
|
||||
self.assertEqual(exit_code, 2)
|
||||
|
||||
|
||||
class TestPythonPy2Argh(TestPythonArgh):
|
||||
__test__ = True
|
||||
config = TestPythonArgh.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_ARGH=y
|
||||
"""
|
||||
|
||||
|
||||
class TestPythonPy3Argh(TestPythonArgh):
|
||||
__test__ = True
|
||||
config = TestPythonArgh.config + \
|
||||
|
@ -1,16 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Bitstring(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_BITSTRING=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_bitstring.py"]
|
||||
|
||||
|
||||
class TestPythonPy3Bitstring(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
@ -1,17 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Can(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_CAN=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_can.py"]
|
||||
timeout = 40
|
||||
|
||||
|
||||
class TestPythonPy3Can(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
@ -1,17 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Cbor(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_CBOR=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_cbor_enc.py",
|
||||
"tests/package/sample_python_cbor_dec.py"]
|
||||
|
||||
|
||||
class TestPythonPy3Cbor(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
@ -26,15 +26,6 @@ class TestPythonClick(TestPythonPackageBase):
|
||||
self.assertEqual(exit_code, 2)
|
||||
|
||||
|
||||
class TestPythonPy2Click(TestPythonClick):
|
||||
__test__ = True
|
||||
config = TestPythonClick.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_CLICK=y
|
||||
"""
|
||||
|
||||
|
||||
class TestPythonPy3Click(TestPythonClick):
|
||||
__test__ = True
|
||||
config = TestPythonClick.config + \
|
||||
|
@ -1,16 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Constantly(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_CONSTANTLY=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_constantly.py"]
|
||||
|
||||
|
||||
class TestPythonPy3Constantly(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
@ -1,16 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2GnuPG(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_GNUPG=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_gnupg.py"]
|
||||
|
||||
|
||||
class TestPythonPy3GnuPG(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
@ -1,17 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Incremental(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_INCREMENTAL=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_incremental.py"]
|
||||
timeout = 30
|
||||
|
||||
|
||||
class TestPythonPy3Incremental(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
@ -1,17 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Passlib(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_PASSLIB=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_passlib.py"]
|
||||
timeout = 30
|
||||
|
||||
|
||||
class TestPythonPy3Passlib(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
@ -1,16 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Pexpect(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_PEXPECT=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_pexpect.py"]
|
||||
|
||||
|
||||
class TestPythonPy3Pexpect(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
@ -1,17 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Pynacl(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_PYNACL=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_pynacl.py"]
|
||||
timeout = 10
|
||||
|
||||
|
||||
class TestPythonPy3Pynacl(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
@ -1,17 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Pyyaml(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_PYYAML=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_pyyaml_enc.py",
|
||||
"tests/package/sample_python_pyyaml_dec.py"]
|
||||
|
||||
|
||||
class TestPythonPy3Pyyaml(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
@ -1,11 +0,0 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Subprocess32(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_SUBPROCESS32=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_subprocess32.py"]
|
@ -1,17 +1,6 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy2Ubjson(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON=y
|
||||
BR2_PACKAGE_PYTHON_UBJSON=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_ubjson_enc.py",
|
||||
"tests/package/sample_python_ubjson_dec.py"]
|
||||
|
||||
|
||||
class TestPythonPy3Ubjson(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
|
Loading…
Reference in New Issue
Block a user