From 082a3da01f01de6b71e24710b4201f969e69d1c9 Mon Sep 17 00:00:00 2001 From: John Griffith Date: Sat, 6 Oct 2012 22:19:33 -0600 Subject: [PATCH] Remove extraneous timing messages from volumes.sh Change: I3bbcc5b9f8a4da2fcdb9f6f70913c2d6bc6e2b9b added some timing messages around the volume operations in exercises/volumes.sh. This was a good idea, but some useless timing info was added to failed cases, this patch pulls that back out. The only parameter used to detect failure is a timeout, so outputing the time elapses in these cases is useless. Change-Id: I609a803a7293aa8a8e3cec186984de59bfe9b409 --- exercises/volumes.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/exercises/volumes.sh b/exercises/volumes.sh index 1c6320c07c..ffa12c462c 100755 --- a/exercises/volumes.sh +++ b/exercises/volumes.sh @@ -158,8 +158,6 @@ fi start_time=`date +%s` if ! timeout $ACTIVE_TIMEOUT sh -c "while ! nova volume-list | grep $VOL_NAME | grep available; do sleep 1; done"; then echo "Volume $VOL_NAME not created" - end_time=`date +%s` - echo "Failed volume-create after $((end_time - start_time)) seconds" exit 1 fi end_time=`date +%s` @@ -176,8 +174,6 @@ nova volume-attach $VM_UUID $VOL_ID $DEVICE || \ die "Failure attaching volume $VOL_NAME to $NAME" if ! timeout $ACTIVE_TIMEOUT sh -c "while ! nova volume-list | grep $VOL_NAME | grep in-use; do sleep 1; done"; then echo "Volume $VOL_NAME not attached to $NAME" - end_time=`date +%s` - echo "Failed volume-attach after $((end_time - start_time)) seconds" exit 1 fi end_time=`date +%s` @@ -195,8 +191,6 @@ start_time=`date +%s` nova volume-detach $VM_UUID $VOL_ID || die "Failure detaching volume $VOL_NAME from $NAME" if ! timeout $ACTIVE_TIMEOUT sh -c "while ! nova volume-list | grep $VOL_NAME | grep available; do sleep 1; done"; then echo "Volume $VOL_NAME not detached from $NAME" - end_time=`date +%s` - echo "Failed volume-detach after $((end_time - start_time)) seconds" exit 1 fi end_time=`date +%s` @@ -207,8 +201,6 @@ start_time=`date +%s` nova volume-delete $VOL_ID || die "Failure deleting volume $VOL_NAME" if ! timeout $ACTIVE_TIMEOUT sh -c "while ! nova volume-list | grep $VOL_NAME; do sleep 1; done"; then echo "Volume $VOL_NAME not deleted" - end_time=`date +%s` - echo "Failed volume-delete after $((end_time - start_time)) seconds" exit 1 fi end_time=`date +%s`