Commit 05fb720f authored by Simon Chabot's avatar Simon Chabot
Browse files

feat(tests): create a .nobackup file in the data/database directory

there is no need to backup data/database. Many backup tools use a `.nobackup`
file to prevent from backuping a directory. Let's add one in the data/database

close #298
parent 26ae08a4ed50
Pipeline #51214 passed with stage
......@@ -291,6 +291,9 @@ class TestDataBaseHandler(object):
if not isdir(backupdir):
# Add a .nobackup file in the database directory
# so that backup utilities, like Borg, do not backup this directory
open(join(backupdir, ".nobackup"), 'w').close()
return backupdir
def config_path(self, db_id):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment