autotest/autotest — pull request #707 by liyangfnst (2013-07-30 02:27:14+00:00)
Title: autotest: Modify stdout and stderr check in CmdResult

Some commands' exit_status is 0, but stdout has no detail, stderr has some infomation.
At this time, exchange stderr and stdout.For example:
1.Create a cgroup(name is 'test') in a cgroup subsystem, for example memory.
2. Execute 'dd' command in 'test' cgroup with utils.run()
result = utils.run("cgexec -g memory:test dd if=/dev/zero of=/home/tmp bs=1M count=100")
3.Print result(gdb or print it directly).You will find that
result.exit_status is '0'
result.stdout.strip() is ''
result.stderr.strip() is
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 0.313314 s, 335 MB/s