From 834805350a1f75b6a301cc9e6ffb2d6222e423be Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Wed, 12 Sep 2012 14:45:48 -0500 Subject: [PATCH] Fix errors in client-* exercises Change-Id: Ib100c7a2a4bb7f7c02cf4a66cb8bcf506aa11339 --- exercises/client-args.sh | 10 ++++++---- exercises/client-env.sh | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/exercises/client-args.sh b/exercises/client-args.sh index 9cbb6a6635..b3e2ad8d4a 100755 --- a/exercises/client-args.sh +++ b/exercises/client-args.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -**client-args.sh** +# **client-args.sh** # Test OpenStack client authentication aguemnts handling @@ -140,8 +140,10 @@ report "Nova" $STATUS_NOVA report "Glance" $STATUS_GLANCE report "Swift" $STATUS_SWIFT -echo "*********************************************************************" -echo "SUCCESS: End DevStack Exercise: $0" -echo "*********************************************************************" +if (( $RETURN == 0 )); then + echo "*********************************************************************" + echo "SUCCESS: End DevStack Exercise: $0" + echo "*********************************************************************" +fi exit $RETURN diff --git a/exercises/client-env.sh b/exercises/client-env.sh index 94f4a82c88..68c0e5adce 100755 --- a/exercises/client-env.sh +++ b/exercises/client-env.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -**client-env.sh** +# **client-env.sh** # Test OpenStack client enviroment variable handling @@ -149,8 +149,10 @@ report "EC2" $STATUS_EC2 report "Glance" $STATUS_GLANCE report "Swift" $STATUS_SWIFT -echo "*********************************************************************" -echo "SUCCESS: End DevStack Exercise: $0" -echo "*********************************************************************" +if (( $RETURN == 0 )); then + echo "*********************************************************************" + echo "SUCCESS: End DevStack Exercise: $0" + echo "*********************************************************************" +fi exit $RETURN