From 2356dbd5942004b8df9b6d8f1fc6e3f120b4fce9 Mon Sep 17 00:00:00 2001 From: Michael Hobbs Date: Wed, 11 May 2016 17:53:12 -0700 Subject: [PATCH] make buggy docker-options test consistent --- tests/unit/20_docker-options.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/20_docker-options.bats b/tests/unit/20_docker-options.bats index cca543ceb..bd31481a4 100644 --- a/tests/unit/20_docker-options.bats +++ b/tests/unit/20_docker-options.bats @@ -150,10 +150,10 @@ teardown() { deploy_app CID=$(< $DOKKU_ROOT/$TEST_APP/CONTAINER.web.1) - run /bin/bash -c "docker inspect -f '{{ .Config.Volumes }}' $CID" + run /bin/bash -c "docker inspect -f '{{ .Config.Volumes }}' $CID | sed -e 's:map::g' | tr -d '[]' | tr ' ' $'\n' | sort | xargs" echo "output: "$output echo "status: "$status - assert_output "map[/tmp:{} /var/tmp:{}]" + assert_output "/tmp:{} /var/tmp:{}" } @test "(docker-options) docker-options:add (all phases over SSH)" {