diff options
| author | Aristo Chen <[email protected]> | 2026-05-11 08:58:50 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-25 13:43:21 -0600 |
| commit | e9848e30bd88bf889ef74799dab6c2a2a0628890 (patch) | |
| tree | e77712abba2b72a55df262d7e9be5d51cac56585 /scripts | |
| parent | 7bb1917b15b77a7d8c27045df33b6bbc214c2f67 (diff) | |
test: fs: Use shared generate_file from utils
test_fs/test_erofs.py and test_fs/test_squashfs/sqfs_common.py both
defined a generate_file() helper that writes a file of a given size
filled with 'x'. The two functions were functionally identical and
differed only in parameter names and docstrings.
Move the helper into the existing test/py/utils.py module, which is
the established home for generic test utilities (md5sum_file,
PersistentRandomFile, attempt_to_open_file). Update both call sites
to use it.
Signed-off-by: Aristo Chen <[email protected]>
Reviewed-by: [email protected]
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
