Convert remainder of tests to use logging

As cerberus, lsb_dtk and dma_memtest had more work to do, they went into
separate patches. This patch now finishes the work of converting tests
to use logging statements. What was done:

 * In one test (aiostress), the values of self.srcdir, self.bindir and
self.tmpdir were being print. As this seems to be a debug statement from
early code that doesn't seem necessary anymore, it was removed.
 * In some tests, the command being executed was being printed out,
followed by a utils.system call. As this sort of command print is a
debugging statement, and as utils.system already logs the command being
executed, in such cases, the command string print was simply removed
 * The form print >> file_object, "foo" was replaced by the equivalent
file_object.write(foo) as it is more clear.
 * Conversion of print statements to logging statements.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3190 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/netperf2/netperf2.py b/client/tests/netperf2/netperf2.py
index 879c6f1..75b6e7b 100755
--- a/client/tests/netperf2/netperf2.py
+++ b/client/tests/netperf2/netperf2.py
@@ -1,4 +1,4 @@
-import os,time
+import os, time, logging
 from autotest_lib.client.bin import test, utils
 from autotest_lib.client.common_lib import error
 
@@ -109,7 +109,7 @@
 
             if ('within' in e.additional_text
                 or 'non-zero' in e.additional_text):
-                print e.additional_text
+                logging.debug(e.additional_text)
                 # Results are cpu%, outputs
                 self.results.append((0, None))
                 self.actual_times.append(1)