Skip to content

Commit

Permalink
RW-670: Updated unit test for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-russell committed Feb 16, 2015
1 parent a8b5392 commit b2b0ac4
Showing 1 changed file with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public void testClientExternalRepositoryExecuteShell() {
// Test.
try {
/*
* The echo.sh shell script lives by default in the
* following directory on disk within the external
* The echo.[sh,bat] shell script lives by default in
* the following directory on disk within the external
* repository:
* external/repository/public/admin which
* maps to the following directory value:
Expand All @@ -105,15 +105,31 @@ public void testClientExternalRepositoryExecuteShell() {
if(exception == null) {

try {
/*
* Test DeployR Linux/OSX Server.
*/
consoleOutput =
rClient.executeShell(shell.about().filename,
shell.about().directory,
shell.about().author,
null,
"Hello World!");
} catch(Exception ex) {
exception = ex;
exceptionMsg = "rClient.executeShell failed: ";
try {
/*
* Test DeployR Windows Server.
*/
consoleOutput =
rClient.executeShell("echo.bat",
shell.about().directory,
shell.about().author,
null,
"Hello World!");

} catch(Exception batex) {
exception = ex;
exceptionMsg = "rClient.executeShell failed: ";
}
}

}
Expand Down

0 comments on commit b2b0ac4

Please sign in to comment.