to avoid using StringIO directly
Signed-off-by: Kefu Chai <kchai@redhat.com>
"""
Start mpi processes (and allow commands to be run inside process)
"""
-from StringIO import StringIO
import logging
import re
"""
versions = set()
for remote in remotes:
- version_str = remote.run(args=["mpiexec", "--version"], stdout=StringIO()).stdout.getvalue()
+ version_str = remote.sh("mpiexec --version")
try:
version = re.search("^\s+Version:\s+(.+)$", version_str, re.MULTILINE).group(1)
except AttributeError: