summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Vet <RlndVt@protonmail.com>2024-02-21 08:39:27 +0100
committerRoland Vet <RlndVt@protonmail.com>2024-02-22 08:12:28 +0100
commit0728677cdc325d3f9ff37f6a665eca13af5e50cc (patch)
treee7f78256063c6035c89766a770b4e7481ccd2855
parent466802d8c73720400415e3e65ee0b263b90f3935 (diff)
Fix dirent test: lines have changed
Signed-off-by: Roland Vet <RlndVt@protonmail.com>
-rw-r--r--tests/test_basic.py10
1 files 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)