This is an automated email from the ASF dual-hosted git repository.
jlewandowski pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git
The following commit(s) were added to refs/heads/trunk by this push:
new 17f67484 Fix assertion in offline_tools_test.py
17f67484 is described below
commit 17f67484f4597e223a669dda4d52fb2cc2250ddf
Author: Jacek Lewandowski <[email protected]>
AuthorDate: Thu Feb 16 13:17:13 2023 +0100
Fix assertion in offline_tools_test.py
patch by Jacek Lewandowski, reviewed by Branimir Lambov for CASSANDRA-17056
---
offline_tools_test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/offline_tools_test.py b/offline_tools_test.py
index d8a0e73e..9b1cfabc 100644
--- a/offline_tools_test.py
+++ b/offline_tools_test.py
@@ -311,7 +311,7 @@ class TestOfflineTools(Tester):
(out, error, rc) = node1.run_sstableverify("keyspace1",
"standard1", options=options)
assert False, "sstable verify did not fail;
rc={}\nout={}\nerr={}".format(str(rc), out, error)
except ToolError as e:
- m = re.match("(?ms).*Corrupted SSTable : (?P<sstable>\S+)", str(e))
+ m = re.match("(?ms).*Corrupted file: integrity check .* failed for
(?P<sstable>\S+?):.*", str(e))
assert m is not None, str(e)
# MacOS might use the "private" prefix.
assert
os.path.normcase(m.group('sstable')).replace("/private/var/folders",
"/var/folders") == sstable1
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]