Reject empty SQLite backup artifacts during verification
ABSDEV Framework CI / framework-ci (push) Successful in 25s
ABSDEV Framework CI / framework-ci (push) Successful in 25s
This commit is contained in:
@@ -84,6 +84,8 @@ class SandboxDatabase:
|
||||
if db.execute("PRAGMA integrity_check").fetchall() != [("ok",)]:
|
||||
raise DatabaseIdentityError("Backup integrity check failed")
|
||||
digest, size = checksum(path)
|
||||
if size == 0:
|
||||
raise DatabaseIdentityError("SQLite backup is empty")
|
||||
result = {
|
||||
"backup_id": identifier, "driver": "sqlite", "database": "acceptance",
|
||||
"username": "local_fixture", "container": "local_fixture",
|
||||
|
||||
Reference in New Issue
Block a user