Skip to content

Commit cec0139

Browse files
authored
DRIVERS-3055 Fix docker teardown (#647)
1 parent 1ccf259 commit cec0139

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.evergreen/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,12 @@ functions:
345345
ENTRYPOINT: /root/test-entrypoint.sh
346346
args:
347347
- ${DRIVERS_TOOLS}/.evergreen/docker/run-server.sh
348+
- command: subprocess.exec
349+
type: test
350+
params:
351+
binary: bash
352+
args:
353+
- ${DRIVERS_TOOLS}/.evergreen/docker/teardown.sh
348354
- command: shell.exec
349355
type: test
350356
params:

.evergreen/docker/teardown.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fi
2121
$DOCKER rm "$($DOCKER ps -a -q)" &> /dev/null || true
2222

2323
# Remove all images.
24-
$DOCKER rmi -f "$($DOCKER -a -q)" &> /dev/null || true
24+
$DOCKER rmi -f "$($DOCKER images -a -q)" &> /dev/null || true
2525

2626
# Remove all generated files in this subfolder.
2727
pushd $SCRIPT_DIR > /dev/null

0 commit comments

Comments
 (0)