brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aleds...@apache.org
Subject [4/6] incubator-brooklyn git commit: ShellToolAbstractTset.execCommands: remove duplication
Date Tue, 23 Dec 2014 15:13:10 GMT
ShellToolAbstractTset.execCommands: remove duplication


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/32f92a4a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/32f92a4a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/32f92a4a

Branch: refs/heads/master
Commit: 32f92a4a657b677d2b5d6d951b1eef85425c9ccc
Parents: f10f571
Author: Aled Sage <aled.sage@gmail.com>
Authored: Tue Nov 25 21:44:06 2014 +0000
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Fri Dec 19 00:18:47 2014 +0000

----------------------------------------------------------------------
 .../java/brooklyn/util/internal/ssh/ShellToolAbstractTest.java  | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/32f92a4a/core/src/test/java/brooklyn/util/internal/ssh/ShellToolAbstractTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/brooklyn/util/internal/ssh/ShellToolAbstractTest.java b/core/src/test/java/brooklyn/util/internal/ssh/ShellToolAbstractTest.java
index ec84e28..b8b394b 100644
--- a/core/src/test/java/brooklyn/util/internal/ssh/ShellToolAbstractTest.java
+++ b/core/src/test/java/brooklyn/util/internal/ssh/ShellToolAbstractTest.java
@@ -399,10 +399,7 @@ public abstract class ShellToolAbstractTest {
     }
 
     protected String execCommands(List<String> cmds, Map<String,?> env) {
-        execCommands(null, cmds, env);
-        ByteArrayOutputStream out = new ByteArrayOutputStream();
-        tool.execCommands(ImmutableMap.of("out", out), cmds, env);
-        return new String(out.toByteArray());
+        return execCommands(null, cmds, env);
     }
 
     protected String execCommands(ConfigBag config, List<String> cmds, Map<String,?>
env) {


Mime
View raw message