Mercurial > hg4j
diff test/org/tmatesoft/hg/test/ExecHelper.java @ 201:a736f42ed75b
Primitive test for clone command
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 21 Apr 2011 19:16:45 +0200 |
parents | 32e794c599d7 |
children | 66fd2c73c56f |
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/ExecHelper.java Wed Apr 20 21:14:51 2011 +0200 +++ b/test/org/tmatesoft/hg/test/ExecHelper.java Thu Apr 21 19:16:45 2011 +0200 @@ -34,6 +34,7 @@ private final OutputParser parser; private final File dir; + private int exitValue; public ExecHelper(OutputParser outParser, File workingDir) { parser = outParser; @@ -86,6 +87,11 @@ } res.flip(); p.waitFor(); + exitValue = p.exitValue(); parser.parse(res); } + + public int getExitValue() { + return exitValue; + } }