]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
daemon-helper: detect the signal actually sent
authorJosh Durgin <josh.durgin@dreamhost.com>
Tue, 4 Oct 2011 19:16:30 +0000 (12:16 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Tue, 4 Oct 2011 19:17:19 +0000 (12:17 -0700)
I thought I fixed this when I implemented coverage collection, but I
guess it got lost in a rebase or something.

teuthology/task/daemon-helper

index 4a044cbe798e40c568e57e7aaf58c4bcdc2015e1..c289d44fc00db1c495238beca68674f672447c66 100755 (executable)
@@ -56,7 +56,7 @@ if exitstatus > 0:
         )
     sys.exit(exitstatus)
 elif exitstatus < 0:
-    if saw_eof and exitstatus == -signal.SIGKILL:
+    if saw_eof and exitstatus == -end_signal:
         # suppress error from the exit we intentionally caused
         pass
     else: