Add function to execute QA commands with redirected output
authorIustin Pop <iustin@google.com>
Tue, 5 Feb 2013 15:24:05 +0000 (16:24 +0100)
committerIustin Pop <iustin@google.com>
Tue, 5 Feb 2013 16:15:05 +0000 (17:15 +0100)
commitafd5ca0470c7c8779debd0d9901e59686d343c42
treef06ce3eef3743cc2b54eceda1c5fd2d7db1e6d19
parent56b9f2db82d8bde071358476faca4db77180c20c
Add function to execute QA commands with redirected output

Some QA commands generate non-trivial output: for a full QA, the gnt-*
list commands generate more than 300MB of data. To make the QA logs
more parseable by humans, we need support for redirecting output of
commands to a different place.

This patch adds a 'AssertRedirectedCommand' that does this,
redirecting the output to a (fixed) log file in the Ganeti log
directory.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
qa/qa_utils.py