mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-08 04:44:00 +01:00
Fix bare run of func tests
This commit is contained in:
@@ -44,6 +44,7 @@ def spawn(request, tag, dockerfile, cmd, install=True, copy_src=False):
|
||||
|
||||
def _finalizer():
|
||||
proc.terminate()
|
||||
if not bare:
|
||||
container_id = subprocess.check_output(['docker', 'ps']) \
|
||||
.decode('utf-8').split('\n')[-2].split()[0]
|
||||
subprocess.check_call(['docker', 'kill', container_id])
|
||||
|
Reference in New Issue
Block a user