autotest: Modify stdout and stderr check in CmdResult

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>