Add optional params to CmdResult.__init__ to allow the attributes to be set
during construction.

Signed-off-by: Travis Miller <raphtee@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1635 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/common_lib/utils.py b/client/common_lib/utils.py
index 00454f8..92e53f7 100644
--- a/client/common_lib/utils.py
+++ b/client/common_lib/utils.py
@@ -481,12 +481,13 @@
 	"""
 
 
-	def __init__(self, command = None):
+	def __init__(self, command=None, stdout="", stderr="", 
+		     exit_status=None, duration=0):
 		self.command = command
-		self.exit_status = None
-		self.stdout = ""
-		self.stderr = ""
-		self.duration = 0
+		self.exit_status = exit_status
+		self.stdout = stdout
+		self.stderr = stderr
+		self.duration = duration
 
 
 	def __repr__(self):