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])
|
||||
self.emulator.login()
|
||||
|
||||
|
||||
def test_run(self):
|
||||
self.login()
|
||||
|
||||
cmd = "dmesg | grep 'Dentry cache'"
|
||||
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))
|
||||
size = int(r.group(2))
|
||||
self.assertEqual(2 ** order * 64 * 1024, size)
|
||||
|
||||
|
||||
class TestAarch64Pages64kGlibc(TestAarch64Pages64kBase):
|
||||
__test__ = True
|
||||
config = TestAarch64Pages64kBase.config + \
|
||||
@ -49,6 +49,7 @@ class TestAarch64Pages64kGlibc(TestAarch64Pages64kBase):
|
||||
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||
"""
|
||||
|
||||
|
||||
class TestAarch64Pages64kuClibc(TestAarch64Pages64kBase):
|
||||
__test__ = True
|
||||
config = TestAarch64Pages64kBase.config + \
|
||||
@ -56,10 +57,10 @@ class TestAarch64Pages64kuClibc(TestAarch64Pages64kBase):
|
||||
BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y
|
||||
"""
|
||||
|
||||
|
||||
class TestAarch64Pages64kMusl(TestAarch64Pages64kBase):
|
||||
__test__ = True
|
||||
config = TestAarch64Pages64kBase.config + \
|
||||
"""
|
||||
BR2_TOOLCHAIN_BUILDROOT_MUSL=y
|
||||
"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user