aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/aspeed.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/aspeed.py')
-rw-r--r--tests/functional/aspeed.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functional/aspeed.py b/tests/functional/aspeed.py
index b131703..47e84e0 100644
--- a/tests/functional/aspeed.py
+++ b/tests/functional/aspeed.py
@@ -61,3 +61,11 @@ class AspeedTest(LinuxKernelTest):
self.wait_for_console_pattern('U-Boot 2019.04')
self.wait_for_console_pattern('## Loading kernel from FIT Image')
self.wait_for_console_pattern('Starting kernel ...')
+
+ def generate_otpmem_image(self):
+ path = self.scratch_file("otpmem.img")
+ pattern = b'\x00\x00\x00\x00\xff\xff\xff\xff' * (16 * 1024 // 8)
+ with open(path, "wb") as f:
+ f.write(pattern)
+ return path
+