mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 20:38:54 +00:00
Fix bare run of func tests
This commit is contained in:
parent
9a02e821cd
commit
6321f25533
@ -44,9 +44,10 @@ def spawn(request, tag, dockerfile, cmd, install=True, copy_src=False):
|
|||||||
|
|
||||||
def _finalizer():
|
def _finalizer():
|
||||||
proc.terminate()
|
proc.terminate()
|
||||||
container_id = subprocess.check_output(['docker', 'ps']) \
|
if not bare:
|
||||||
.decode('utf-8').split('\n')[-2].split()[0]
|
container_id = subprocess.check_output(['docker', 'ps']) \
|
||||||
subprocess.check_call(['docker', 'kill', container_id])
|
.decode('utf-8').split('\n')[-2].split()[0]
|
||||||
|
subprocess.check_call(['docker', 'kill', container_id])
|
||||||
|
|
||||||
request.addfinalizer(_finalizer)
|
request.addfinalizer(_finalizer)
|
||||||
return proc
|
return proc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user