commit | 6b1341a7f7363a96f1b6693d7785e7c113794ac6 | [log] [tgz] |
---|---|---|
author | koder aka kdanilov <kdanilov@mirantis.com> | Tue Apr 21 22:44:21 2015 +0300 |
committer | koder aka kdanilov <kdanilov@mirantis.com> | Tue Apr 21 22:44:21 2015 +0300 |
tree | f4beed3ef61a2a2dbdedc587a7cf31d82868cbbb | |
parent | ea7eac705e7aa032835393db3cbb526787babed9 [diff] [blame] |
fix python 2.6 compatibility
diff --git a/wally/suits/io/agent.py b/wally/suits/io/agent.py index c012950..b11f20e 100644 --- a/wally/suits/io/agent.py +++ b/wally/suits/io/agent.py
@@ -361,6 +361,9 @@ # set timeout raw_out, raw_err = p.communicate(benchmark_config) + # HACK + raw_out = "{" + raw_out.split('{', 1)[1] + if 0 != p.returncode: msg = "Fio failed with code: {0}\nOutput={1}" raise OSError(msg.format(p.returncode, raw_err))