~nskaggs/autopilot/add-isolation-apparmor-rules

« back to all changes in this revision

Viewing changes to autopilot/globals.py

  • Committer: CI bot
  • Author(s): Tarmac
  • Date: 2014-05-09 00:48:06 UTC
  • mfrom: (483.2.19 temp-dev)
  • Revision ID: ps-jenkins@lists.canonical.com-20140509004806-8528si3da584w57j
Initial release of 1.5. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
from autopilot._debug import DebugProfile
31
31
from autopilot.utilities import LogFormatter, CleanupRegistered
32
32
from testtools.content import text_content
 
33
import signal
33
34
import subprocess
34
35
import os.path
35
36
import logging
167
168
        file."""
168
169
 
169
170
        if self._test_passed:
170
 
            # We use kill here because we don't want the recording app to start
171
 
            # encoding the video file (since we're removing it anyway.)
172
 
            self._capture_process.kill()
 
171
            # SIGABRT terminates the program and removes
 
172
            # the specified output file.
 
173
            self._capture_process.send_signal(signal.SIGABRT)
173
174
            self._capture_process.wait()
174
175
        else:
175
176
            self._capture_process.terminate()