mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 01:50:35 +00:00
Before this patch, the test cql-pytest/test_tools.py left behind a temporary file in /tmp. It used pytest's "tmp_path_factory" feature, but it doesn't remove temporary files it creates. This patch removes the temporary file when the fixture using it ends, but moreover, it puts the temporary file not in /tmp but rather next to Scylla's data directory. That directory will be eventually removed entirely, so even if we accidentally leave a file there, it will eventually be deleted. Fixes #10924 Signed-off-by: Nadav Har'El <nyh@scylladb.com> Closes #10929