You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by go...@apache.org on 2015/06/01 21:45:51 UTC
incubator-slider git commit: SLIDER-895 Slider Unit Test Cases
Failing on Windows (Thomas Liu via gourksaha)
Repository: incubator-slider
Updated Branches:
refs/heads/develop bcb8b130f -> 4b9ab7460
SLIDER-895 Slider Unit Test Cases Failing on Windows (Thomas Liu via gourksaha)
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/4b9ab746
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/4b9ab746
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/4b9ab746
Branch: refs/heads/develop
Commit: 4b9ab74607bbd1f1f0a50074074298501eca9dc4
Parents: bcb8b13
Author: Gour Saha <go...@apache.org>
Authored: Mon Jun 1 12:39:00 2015 -0700
Committer: Gour Saha <go...@apache.org>
Committed: Mon Jun 1 12:44:36 2015 -0700
----------------------------------------------------------------------
.../slider/providers/agent/TestAgentClientProvider2.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/4b9ab746/slider-core/src/test/java/org/apache/slider/providers/agent/TestAgentClientProvider2.java
----------------------------------------------------------------------
diff --git a/slider-core/src/test/java/org/apache/slider/providers/agent/TestAgentClientProvider2.java b/slider-core/src/test/java/org/apache/slider/providers/agent/TestAgentClientProvider2.java
index 841ad69..1fbbfce 100644
--- a/slider-core/src/test/java/org/apache/slider/providers/agent/TestAgentClientProvider2.java
+++ b/slider-core/src/test/java/org/apache/slider/providers/agent/TestAgentClientProvider2.java
@@ -206,8 +206,12 @@ public class TestAgentClientProvider2 extends SliderTestUtils {
String client_script = "scripts/abc.py";
List<String> commands =
- Arrays.asList("python", "-S", "/tmp/pkg/package/scripts/abc.py", "INSTALL", "/tmp/cmd/command.json",
- "/tmp/pkg/package", "/tmp/cmd/command-out.json", "DEBUG");
+ Arrays.asList("python", "-S", new File("/tmp/pkg").getAbsolutePath() + File.separator + "package" +
+ File.separator + "scripts/abc.py",
+ "INSTALL", new File("/tmp/cmd").getAbsolutePath() + File.separator + "command.json",
+ new File("/tmp/pkg").getAbsolutePath() + File.separator + "package",
+ new File("/tmp/cmd").getAbsolutePath() + File.separator + "command-out.json", "DEBUG");
+
ProcessBuilder pbMock = PowerMock.createMock(ProcessBuilder.class);
Process procMock = PowerMock.createMock(Process.class);
PowerMock.expectNew(ProcessBuilder.class, commands).andReturn(pbMock);