From 7d2f5b84c80ee443158572a9cb96fdefd0665540 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 14 Mar 2019 13:44:54 -0400 Subject: [PATCH] fix: add missing head -n1 call to second build-env test Otherwise `docker inspect` outputs a "condensed" json output that doesn't parse as well... --- tests/unit/20_build-env.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/20_build-env.bats b/tests/unit/20_build-env.bats index 48e2626b0..8b59c61c5 100644 --- a/tests/unit/20_build-env.bats +++ b/tests/unit/20_build-env.bats @@ -87,7 +87,7 @@ teardown() { echo export DOKKU_HOST_ROOT="$TMP_ROOT" > $DOKKU_ROOT/.dokkurc/HOST_ROOT DOKKU_HOST_ROOT="$TMP_ROOT" deploy_app - BUILD_CID=$(docker ps -a | grep $TEST_APP | grep /bin/bash | awk '{print $1}') + BUILD_CID=$(docker ps -a | grep $TEST_APP | grep /bin/bash | awk '{print $1}' | head -n1) run /bin/bash -c "docker inspect --format '{{ .HostConfig.Binds }}' $BUILD_CID | tr -d '[]' | cut -f1 -d:" echo "output: $output" echo "status: $status"