summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-01-10 22:28:22 -0800
committerSen Jiang <senj@google.com>2017-05-31 15:56:02 -0700
commit80098619176a8031b6fde1a57513c12e06a2e1e1 (patch)
tree6ae993cd5aa9d5d3d792f7225173023a10897562 /scripts/update_payload/format_utils_unittest.py
parent70a21191b545c7c9cc3416c17b3e794c77b2e475 (diff)
update_engine: clean up sleep process in P2PManagerTest.LookupURL
P2PManagerTest.LookupURL terminates a 'sh' process, which is put into sleep by executing `sleep 2`. Upon receiving SIGTERM, the 'sleep' process isn't reaped and thus becomes orphaned. As a remedy, this CL modifies the shell command to trap SIGTERM and kill the 'sleep' process upon receiving SIGTERM. BUG=chromium:678643 TEST=Verified that no orphaned 'sleep' process is left after running P2PManagerTest.LookupURL. Reviewed-on: https://chromium-review.googlesource.com/427060 Commit-Ready: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> (cherry picked from commit 28f9a886f0699986f7c378a9898bea9c6f7515ee) Change-Id: I9f7d53d3cfb515363f1b77d03816867fb85d9993
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions