From 0728677cdc325d3f9ff37f6a665eca13af5e50cc Mon Sep 17 00:00:00 2001 From: Roland Vet Date: Wed, 21 Feb 2024 08:39:27 +0100 Subject: [PATCH] Fix dirent test: lines have changed Signed-off-by: Roland Vet --- tests/test_basic.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/test_basic.py b/tests/test_basic.py index 65ad105e..d3937dfe 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -54,10 +54,14 @@ def test_list_dirent(tmpdir): assert ret.returncode == 0 assert len(ret.stderr) == 0 - assert len(ret.stdout.splitlines()) == (2 + 1) # 1 dirent + assert len(ret.stdout.splitlines()) == (6) # See example: # Example: - # u64s 8 type dirent 4096:2449855786607753081 - # snap 0 len 0 ver 0: lost+found -> 4097 + # mounting version 1.6: btree_subvolume_children opts=ro,errors=continue,degraded,nochanges,norecovery,read_only + # recovering from clean shutdown, journal seq 9 + # alloc_read... done + # stripes_read... done + # snapshots_read... done + # u64s 8 type dirent 4096:453699834857023875:U32_MAX len 0 ver 0: lost+found -> 4097 type dir last = ret.stdout.splitlines()[-1] assert re.match(r'^.*type dirent.*: lost\+found ->.*$', last)