From 63645dea384a37dde5c01d4f8905566978e5d906 Mon Sep 17 00:00:00 2001 From: Oleg Gelbukh Date: Wed, 23 Dec 2015 12:51:11 +0000 Subject: [PATCH] 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 --- shotgun/driver.py | 1 + shotgun/test/test_driver.py | 1 + 2 files changed, 2 insertions(+) diff --git a/shotgun/driver.py b/shotgun/driver.py index 86d3e81..4054e54 100644 --- a/shotgun/driver.py +++ b/shotgun/driver.py @@ -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 diff --git a/shotgun/test/test_driver.py b/shotgun/test/test_driver.py index 333f688..c55cfa3 100644 --- a/shotgun/test/test_driver.py +++ b/shotgun/test/test_driver.py @@ -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"