]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
Fixes tests which have broken since 'list' improvements
authorJaanus Torp <jaanus@saun.ee>
Sat, 22 Aug 2020 14:30:50 +0000 (14:30 +0000)
committerGitHub <noreply@github.com>
Sat, 22 Aug 2020 14:30:50 +0000 (14:30 +0000)
Improvements to the 'list' command broke the basic test assertion that the output should be only 2 lines. Now it's 95 lines. This PR fixes this test for now.

Thank you for the great work!

tests/test_basic.py

index f219f07efcf4b0fc6719fb3369382b9db1bab319..47b621c98f4a3f80168fa1bc180f49fc1954629c 100644 (file)
@@ -37,7 +37,7 @@ def test_list(tmpdir):
     assert ret.returncode == 0
     assert len(ret.stderr) == 0
     assert "recovering from clean shutdown" in ret.stdout
-    assert len(ret.stdout.splitlines()) == 2
+    assert len(ret.stdout.splitlines()) == 95
 
 def test_list_inodes(tmpdir):
     dev = util.format_1g(tmpdir)