git » libjio » commit 1ee54b0

tests/stress: Put decoded status information when a process dies

author Alberto Bertogli
2009-09-25 02:38:57 UTC
committer Alberto Bertogli
2009-09-25 02:40:49 UTC
parent 113d9b923874b008593c5178d8504295640bf527

tests/stress: Put decoded status information when a process dies

The status without decoding is not very useful, so this patch puts the
decoded information to make it easier to read.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

tests/stress/jiostress +4 -1

diff --git a/tests/stress/jiostress b/tests/stress/jiostress
index 3a53f43..26b0f79 100755
--- a/tests/stress/jiostress
+++ b/tests/stress/jiostress
@@ -510,7 +510,10 @@ class Stresser:
 			# parent
 			id, status = os.waitpid(pid, 0)
 			if not os.WIFEXITED(status):
-				raise RuntimeError(status)
+				i = (status,
+					os.WIFSIGNALED(status),
+					os.WTERMSIG(status))
+				raise RuntimeError(i)
 
 			if os.WEXITSTATUS(status) != 0:
 				return False