mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-29 04:37:00 +00:00
The KMIP tests start a local PyKMIP server and configure it to write logs in the test's temporary directory (`tmpdir`). However, the tmpdir is a RAII object that deletes the directory once it goes out of scope, causing PyKMIP server logs to be lost on test failures. To assist with debugging, preserve the whole directory if the test failed with an exception. Allow the user to disable this by setting the SCYLLA_TEST_PRESERVE_TMP_ON_EXCEPTION environment variable. Signed-off-by: Nikos Dragazis <nikolaos.dragazis@scylladb.com>
76 KiB
76 KiB