Set output for local command

Set 'output' property for local command. This is required for
'mktemp' to work similarly in both cases (local and remote
command).

Change-Id: Ic4efe586683424c7145e811aa3495cf23e8f550e
Closes-bug: 1528815
This commit is contained in:
Oleg Gelbukh 2015-12-23 12:51:11 +00:00 committed by Igor Kalnitsky
parent bf79f1ac08
commit 63645dea38
2 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,7 @@ class Driver(object):
logger.debug("Running local command: %s", command)
out.return_code, out.stdout, out.stderr = utils.execute(
command)
out.output = out.stdout
except fabric.exceptions.NetworkError as e:
logger.error("NetworkError occured: %s", str(e))
raise

View File

@ -107,6 +107,7 @@ class TestDriver(base.BaseTestCase):
out = shotgun.driver.CommandOut()
out.stdout = "STDOUT"
out.stderr = "STDERR"
out.output = "STDOUT"
out.return_code = "RETURN_CODE"
command = "COMMAND"