mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
support/testing/tests/toolchain/test_aarch64_64k.py: fix flake8 errors
support/testing/tests/toolchain/test_aarch64_64k.py:35:5: E303 too many blank lines (2)
support/testing/tests/toolchain/test_aarch64_64k.py:40:65: W605 invalid escape sequence '\('
support/testing/tests/toolchain/test_aarch64_64k.py:45:1: E302 expected 2 blank lines, found 1
support/testing/tests/toolchain/test_aarch64_64k.py:52:1: E302 expected 2 blank lines, found 1
support/testing/tests/toolchain/test_aarch64_64k.py:59:1: E302 expected 2 blank lines, found 1
support/testing/tests/toolchain/test_aarch64_64k.py:65:1: W391 blank line at end of file
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
3b6bce6598
commit
1702ddd20c
@@ -31,17 +31,17 @@ class TestAarch64Pages64kBase(infra.basetest.BRTest):
|
|||||||
options=["-M", "virt", "-cpu", "cortex-a57", "-m", "512M", "-initrd", img])
|
options=["-M", "virt", "-cpu", "cortex-a57", "-m", "512M", "-initrd", img])
|
||||||
self.emulator.login()
|
self.emulator.login()
|
||||||
|
|
||||||
|
|
||||||
def test_run(self):
|
def test_run(self):
|
||||||
self.login()
|
self.login()
|
||||||
|
|
||||||
cmd = "dmesg | grep 'Dentry cache'"
|
cmd = "dmesg | grep 'Dentry cache'"
|
||||||
output, exit_code = self.emulator.run(cmd, 120)
|
output, exit_code = self.emulator.run(cmd, 120)
|
||||||
r = re.match(".*Dentry cache hash table entries: [0-9]* \(order: ([0-9]*), ([0-9]*) bytes.*", output[0])
|
r = re.match(r".*Dentry cache hash table entries: [0-9]* \(order: ([0-9]*), ([0-9]*) bytes.*", output[0])
|
||||||
order = int(r.group(1))
|
order = int(r.group(1))
|
||||||
size = int(r.group(2))
|
size = int(r.group(2))
|
||||||
self.assertEqual(2 ** order * 64 * 1024, size)
|
self.assertEqual(2 ** order * 64 * 1024, size)
|
||||||
|
|
||||||
|
|
||||||
class TestAarch64Pages64kGlibc(TestAarch64Pages64kBase):
|
class TestAarch64Pages64kGlibc(TestAarch64Pages64kBase):
|
||||||
__test__ = True
|
__test__ = True
|
||||||
config = TestAarch64Pages64kBase.config + \
|
config = TestAarch64Pages64kBase.config + \
|
||||||
@@ -49,6 +49,7 @@ class TestAarch64Pages64kGlibc(TestAarch64Pages64kBase):
|
|||||||
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class TestAarch64Pages64kuClibc(TestAarch64Pages64kBase):
|
class TestAarch64Pages64kuClibc(TestAarch64Pages64kBase):
|
||||||
__test__ = True
|
__test__ = True
|
||||||
config = TestAarch64Pages64kBase.config + \
|
config = TestAarch64Pages64kBase.config + \
|
||||||
@@ -56,10 +57,10 @@ class TestAarch64Pages64kuClibc(TestAarch64Pages64kBase):
|
|||||||
BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y
|
BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class TestAarch64Pages64kMusl(TestAarch64Pages64kBase):
|
class TestAarch64Pages64kMusl(TestAarch64Pages64kBase):
|
||||||
__test__ = True
|
__test__ = True
|
||||||
config = TestAarch64Pages64kBase.config + \
|
config = TestAarch64Pages64kBase.config + \
|
||||||
"""
|
"""
|
||||||
BR2_TOOLCHAIN_BUILDROOT_MUSL=y
|
BR2_TOOLCHAIN_BUILDROOT_MUSL=y
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user