Now fixing the places where we're raising string exceptions on the
client code. The patch also fixes identation errors in the iostat
profiler and error.py'>error.py.

Signed-off-by: Lucas Meneghel Rodrigues <lucasmr@br.ibm.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1158 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/disktest/disktest.py b/client/tests/disktest/disktest.py
index 219b3a7..85c2997 100755
--- a/client/tests/disktest/disktest.py
+++ b/client/tests/disktest/disktest.py
@@ -41,8 +41,8 @@
 		self.chunk_mb = chunk_mb
 		self.memory_mb = memtotal()/1024
 		if self.memory_mb > chunk_mb:
-			raise "Too much RAM (%dMB) for this test to work" % \
-								self.memory_mb
+			e_msg = "Too much RAM (%dMB) for this test to work" % self.memory_mb
+			raise TestError(e_msg)
 
 		chunks = (1024 * gigabytes) / chunk_mb
 
@@ -57,5 +57,5 @@
 				if (retval != 0):
 					errors.append(retval)
 			if errors:
-				raise "Errors from children: %s" % errors
-		
+				raise TestError("Errors from children: %s" % errors)
+