[elbe-devel] [PATCH] tests: simple-validation-image: validate generated fstab
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Wed Aug 14 10:32:12 CEST 2024
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
tests/simple-validation-image-test.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/simple-validation-image-test.py b/tests/simple-validation-image-test.py
index cb8844f5619e..41151ebd30b4 100755
--- a/tests/simple-validation-image-test.py
+++ b/tests/simple-validation-image-test.py
@@ -218,6 +218,9 @@ def _test_rfs_partition(build_dir, part):
assert root.joinpath('etc', 'hostname').read_text() == 'validation-image'
assert root.joinpath('etc', 'mailname').read_text() == 'validation-image.elbe-ci'
assert not root.joinpath('etc', 'resolv.conf').exists()
+ assert root.joinpath('etc', 'fstab').read_text().strip() == textwrap.dedent("""
+ LABEL=rfs / ext4 defaults 0 0
+ """).strip()
assert root.joinpath('etc', 'os-release').read_text().strip() == textwrap.dedent("""
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
---
base-commit: fe0ef725cfcd3e6ac93b9c538a1d7a812f3fcd28
change-id: 20240814-test-fstab-4e8d5322dcbd
prerequisite-change-id: 20240814-tmpfs-2f130b3d5ea1:v1
Best regards,
--
Thomas Weißschuh <thomas.weissschuh at linutronix.de>
More information about the elbe-devel
mailing list