tests: fix handling old backup format

This commit is contained in:
Marek Marczykowski-Górecki 2015-02-22 14:46:46 +01:00
parent bc9e4d1fe5
commit 1f30a03a09

View File

@ -469,7 +469,7 @@ class BackupTestsMixin(SystemTestsMixin):
self.assertTrue(len(errors) == 0,
"Error(s) detected during backup_restore_do: %s" %
'\n'.join(errors))
if not appvm:
if not appvm and not os.path.isdir(backupfile):
os.unlink(backupfile)