commit | 5b240a626eb450a169e2e79f33b4e29b2c4e2d7a | [log] [tgz] |
---|---|---|
author | Matthew Treinish <mtreinish@kortar.org> | Mon Sep 15 12:04:38 2014 -0400 |
committer | Matthew Treinish <mtreinish@kortar.org> | Mon Sep 15 12:04:38 2014 -0400 |
tree | 0227adbb6d2d16f7dcf0b314b742d31ae58000fb | |
parent | 9d7d28b66f9aa3fe1220f418cc2d13dd19984429 [diff] |
Properly print STDOUT and STDERR in test_wrappers If the unit tests in test_wrappers.py fail while using subprocess to run the wrapper scripts STDOUT and STDERR are incorrectly used in the exception method. Currently str() on the stringIO object is being used for the message, which will only print information about the open file. This commit fixes this by calling the read() method on the pipe objects to print their contents. Change-Id: I8fbf560fe2c706f1de96bb089730ec3f92fe3327