diff options
author | shingil.kang <shingil.kang@samsung.com> | 2014-08-01 15:59:07 +0900 |
---|---|---|
committer | shingil.kang <shingil.kang@samsung.com> | 2014-08-01 15:59:07 +0900 |
commit | 7952c1f152209e053b9d868602ce4ca9aca9c4d2 (patch) | |
tree | 27f4b8655297566d94b8ae93135c5e74d6ea6e15 | |
parent | 96debef6d561e84f9e5483c54cab2eac1df1365d (diff) | |
download | common-eplugin-7952c1f152209e053b9d868602ce4ca9aca9c4d2.tar.gz common-eplugin-7952c1f152209e053b9d868602ce4ca9aca9c4d2.tar.bz2 common-eplugin-7952c1f152209e053b9d868602ce4ca9aca9c4d2.zip |
TEST: Fixed a bug where the full output of process is not shown though process is terminated.
Change-Id: I8eba3a22d83d5ce3e1cc1a975b0e274545e50a9d
Signed-off-by: shingil.kang <shingil.kang@samsung.com>
-rw-r--r-- | org.tizen.common/test/src/org/tizen/common/Shell.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/org.tizen.common/test/src/org/tizen/common/Shell.java b/org.tizen.common/test/src/org/tizen/common/Shell.java index 13e47d9b6..972c7ec8f 100644 --- a/org.tizen.common/test/src/org/tizen/common/Shell.java +++ b/org.tizen.common/test/src/org/tizen/common/Shell.java @@ -228,11 +228,17 @@ implements IShell { trySleep( 200 ); } - + if( !in.isState(ServerState.Terminated) && !waitForFin) { return instance; } - + + // wait for result buffer being fully filled. + while(!in.isState(ServerState.Terminated )) + { + trySleep (200); + } + String result = ""; if(standardError) { result = error.getResult(); |