summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-12-24 23:57:45 +0000
committerLars Wirzenius <liw@liw.fi>2013-12-28 21:51:25 +0000
commitc0328e8bc055048c52b642f722b6f098a881bf1e (patch)
tree6ec4f2a32893bfd08bdd0b4d5bee1bb258ff1468
parent4ecc62801e1121a7a2cb2098fc7068bd75c0946e (diff)
downloadobnam-c0328e8bc055048c52b642f722b6f098a881bf1e.tar.gz
Remove pointless client-exists test
a) list all clients b) for each client, list all clients again and see if the client is still in the list There's no point in this.
-rw-r--r--obnamlib/plugins/fsck_plugin.py17
-rw-r--r--test-gpghome/random_seedbin600 -> 600 bytes
2 files changed, 0 insertions, 17 deletions
diff --git a/obnamlib/plugins/fsck_plugin.py b/obnamlib/plugins/fsck_plugin.py
index 52f9a9d3..92a093cd 100644
--- a/obnamlib/plugins/fsck_plugin.py
+++ b/obnamlib/plugins/fsck_plugin.py
@@ -172,20 +172,6 @@ class CheckGenerationIdsAreDifferent(WorkItem):
done.add(genid)
-class CheckClientExists(WorkItem):
-
- def __init__(self, client_name):
- self.client_name = client_name
- self.name = 'does client %s exist?' % client_name
-
- def do(self):
- logging.debug('Checking client=%s exists' % self.client_name)
- client_names = self.repo.get_client_names()
- if self.client_name not in client_names:
- self.error('Client %s is in client list, but has no id' %
- self.client_name)
-
-
class CheckClient(WorkItem):
def __init__(self, client_name):
@@ -211,9 +197,6 @@ class CheckClientlist(WorkItem):
def do(self):
logging.debug('Checking clientlist')
clients = self.repo.get_client_names()
- for client_name in clients:
- if client_name not in self.settings['fsck-ignore-client']:
- yield CheckClientExists(client_name)
if not self.settings['fsck-skip-per-client-b-trees']:
for client_name in clients:
if client_name not in self.settings['fsck-ignore-client']:
diff --git a/test-gpghome/random_seed b/test-gpghome/random_seed
index 2beb79eb..4637c6ec 100644
--- a/test-gpghome/random_seed
+++ b/test-gpghome/random_seed
Binary files differ