burnin: move batch init/commit into a decorator
authorIustin Pop <iustin@google.com>
Tue, 21 Jul 2009 09:55:19 +0000 (11:55 +0200)
committerIustin Pop <iustin@google.com>
Tue, 21 Jul 2009 12:15:39 +0000 (14:15 +0200)
commitc70481abfce865423196f9e4e951a74bb6d8cfd3
tree49353717530da36f3db2fcbfa2bafcc63fb693aa
parentd9b7a0b488686d1279db35b31858e5ed5430504e
burnin: move batch init/commit into a decorator

Many burnin steps initialize the batch queue at the beginning and commit
it at the end of their operation. This patch moves this code to a
decorator, in order to reduce redundant code.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Olivier Tharan <olive@google.com>
tools/burnin