diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-11-21 12:23:22 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-11-21 12:23:22 +0100 |
commit | 0e2d5eb4a11fee24fd6361264ff1ce57eccb2ce9 (patch) | |
tree | 0e8a280295ceb5fc812faa5b24a75ed9e38aab56 /afm-test.native.sh | |
parent | 4d9b8f81b4331dea1f8186e1245a1210be3bf767 (diff) |
Change exit message depending on exit reasonguppy_6.99.1guppy/6.99.16.99.1
Clarify the exit message in case of binder timeout since
the default timeout is 3 seconds, it may not be sufficient.
As the timeout command, return exit 124 in case of timeout
and 128+9 when killed (signal 9).
Change-Id: Ia6197c65a32b6fe547fc18115e8c21f572cfcc2b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'afm-test.native.sh')
-rw-r--r-- | afm-test.native.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/afm-test.native.sh b/afm-test.native.sh index ffdb869..a80fdf2 100644 --- a/afm-test.native.sh +++ b/afm-test.native.sh @@ -26,7 +26,12 @@ cleanNexit() { then [ -f "${LOGFILESERVICE}" ] && cat "${LOGFILESERVICE}" [ -f "${LOGFILETEST}" ] && cat "${LOGFILETEST}" - echo "Error: Test launch failed. Code: $1" + if [[ $1 -eq 124 ]] || [[ $1 -eq 137 ]] + then + echo -e "Error: Test timed out. Try to use '-t' options to increase the timeout.\nError: Exit Code: $1" + else + echo -e "Error: Test launch failed.\nError: Exit Code: $1" + fi else find "${TESTPACKAGEDIR}" -maxdepth 1 -name '*.tap' -exec cat {} \; find "${TESTPACKAGEDIR}" -maxdepth 1 -name '*.txt' -exec cat {} \; |