Fixed backup unittests to use mocked cmd

The backup unittests were using the actual cmd from the backup
implementation (eg. innobackupex) instead of the faked unit test
cmd. Fixed this so that calls to innobackupex are no longer being
made when running the unit tests.

Closes-bug: 1290290
Change-Id: I26b77efbf95feb5a32777197c7cba08f7b757c38
This commit is contained in:
Nikhil Manchanda
2014-03-10 17:34:16 -07:00
parent ee1fc921a1
commit dc932356f0

View File

@@ -50,6 +50,9 @@ class MockBackup(BackupRunner):
self.cmd = 'echo %s' % self.data
super(MockBackup, self).__init__(*args, **kwargs)
def cmd(self):
return self.cmd
class MockCheckProcessBackup(MockBackup):
"""Backup runner that fails confirming the process."""