Skip to content

Commit 64ed491

Browse files
committed
fix(tests): restore pipefail error checking to ec2 script
1 parent 18ee46a commit 64ed491

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/bin/test-integration-ec2.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66

77
# fail on any command exiting non-zero
8-
set -e
8+
set -eo pipefail
99

1010
# absolute path to current directory
1111
export THIS_DIR=$(cd $(dirname $0); pwd)
@@ -68,8 +68,7 @@ fi
6868

6969
make discovery-url
7070
# add random characters after STACK_TAG to avoid collisions
71-
# TODO: somehow this breaks "set -eo pipefail"
72-
STACK_TAG=${STACK_TAG:-test}-$(base64 /dev/urandom | tr -dc a-z0-9 | head -c 6)
71+
STACK_TAG=${STACK_TAG:-test}-$(openssl rand -hex 4)
7372
STACK_NAME=deis-$STACK_TAG
7473
echo "Creating CloudFormation stack $STACK_NAME"
7574
$DEIS_ROOT/contrib/ec2/provision-ec2-cluster.sh $STACK_NAME

0 commit comments

Comments
 (0)