From: wenjuan dong Date: Mon, 12 Mar 2018 07:58:02 +0000 (+0000) Subject: Merge "Auto Generated INFO.yaml file" X-Git-Tag: opnfv-6.0.0~9 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=8dc884e35c1cbfb2181f2bf803e3dc0171cbdbe6;hp=c276dd98071650ace04028818699bb8edca3f0e7;p=doctor.git Merge "Auto Generated INFO.yaml file" --- diff --git a/doctor_tests/inspector/sample.py b/doctor_tests/inspector/sample.py index fadfd3d4..abc4fc6d 100644 --- a/doctor_tests/inspector/sample.py +++ b/doctor_tests/inspector/sample.py @@ -168,7 +168,7 @@ class InspectorApp(Thread): self.inspector.handle_events(events) return "OK" - @app.route('/shutdown', methods=['POST']) + @app.route('/events/shutdown', methods=['POST']) def shutdown(): self.log.info('shutdown inspector app server at %s' % time.time()) func = request.environ.get('werkzeug.server.shutdown') diff --git a/doctor_tests/main.py b/doctor_tests/main.py index 8051ad6e..3f54fc32 100644 --- a/doctor_tests/main.py +++ b/doctor_tests/main.py @@ -9,7 +9,6 @@ import os from os.path import isfile, join import random -import signal import sys import time @@ -258,16 +257,10 @@ class DoctorTest(object): self.installer.cleanup() self.image.delete() self.user.delete() - # Kill possible hanging subprocess - os.killpg(0, signal.SIGKILL) def main(): """doctor main""" - # TODO (tojuvone): JIRA DOCTOR-123: Test cases have some issue to always - # kill all subprocesses. To ensure they are killed this group is done so - # all processes can be killed without knowing what they are. - os.setpgrp() test_dir = os.path.split(os.path.realpath(__file__))[0] doctor_root_dir = os.path.dirname(test_dir)