vfat/utf-8 cosmetics

This commit is contained in:
Peter Bieringer
2026-04-23 08:32:08 +02:00
parent 60899accd5
commit 56724496d2

View File

@@ -122,23 +122,23 @@ deps = [
]
commands_pre = [
# create 64 MByte disk image
["dd", "if=/dev/zero", "of=/tmp/vfat8.img", "bs=1M", "count=64"],
["dd", "if=/dev/zero", "of=/tmp/vfat-utf8.img", "bs=1M", "count=64"],
# create file system
["mkfs.vfat", "/tmp/vfat8.img", "-n", "VFAT"],
["mkfs.vfat", "/tmp/vfat-utf8.img", "-n", "VFAT"],
# unconditionally create mount point
["mkdir", "-p", "/tmp/vfat8"],
["mkdir", "-p", "/tmp/vfat-utf8"],
# mount image
["sudo", "/usr/bin/mount", "-o", "loop,umask=000,utf8", "/tmp/vfat8.img", "/tmp/vfat8"],
["sudo", "/usr/bin/mount", "-o", "loop,umask=000,utf8", "/tmp/vfat-utf8.img", "/tmp/vfat-utf8"],
]
setenv = { TEMP = "/tmp/vfat8" }
setenv = { TEMP = "/tmp/vfat-utf8" }
commands = [["pytest", "-r", "s", "."]]
commands_post = [
# umount image
["sudo", "/usr/bin/umount", "-d", "/tmp/vfat8"],
["sudo", "/usr/bin/umount", "-d", "/tmp/vfat-utf8"],
# remove mount point
["rmdir", "/tmp/vfat8"],
["rmdir", "/tmp/vfat-utf8"],
# remove image
["rm", "/tmp/vfat8.img"]
["rm", "/tmp/vfat-utf8.img"]
]
[tool.tox.env.py_filesystem_hfsplus]