Skip to content

Commit

Permalink
[FAB-5918]Fix build status on CI
Browse files Browse the repository at this point in the history
Change-Id: I8c4151d87fd48e74d7d333a99f6704e2413017de
Signed-off-by: biljana lukovic <biljana.lukovic@securekey.com>
  • Loading branch information
biljanaLukovic committed Aug 25, 2017
1 parent ab4271b commit 77082f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion pkg/config/config_test.go
Expand Up @@ -49,7 +49,6 @@ oG5kQQIgQAe4OOKYhJdh3f7URaKfGTf492/nmRmtK+ySKjpHSrU=
-----END CERTIFICATE-----`

func TestCAConfig(t *testing.T) {

//Test config
vConfig := viper.New()
vConfig.SetConfigFile("../../test/fixtures/config/config_test.yaml")
Expand Down
14 changes: 9 additions & 5 deletions test/scripts/check_status.sh
Expand Up @@ -4,18 +4,22 @@
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
file_path=$1
exit_code=0

docker-compose --file=$file_path ps -q | xargs docker inspect -f '{{ .Name }},{{ .State.ExitCode }}' | \

while read name ; do
if echo "$name" | grep -q "softhsm2"
then
code="$(cut -d',' -f2 <<<"$name")"
if (test "$code" -ne "$exit_code")
statusCode="${name: -1}"
echo $statusCode
if [ "$statusCode" != "0" ]
then
exit_code=1
exit $statusCode
else
exit 0
fi
fi
done
exit $exit_code

0 comments on commit 77082f4

Please sign in to comment.