We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18ee46a commit 64ed491Copy full SHA for 64ed491
1 file changed
tests/bin/test-integration-ec2.sh
@@ -5,7 +5,7 @@
5
#
6
7
# fail on any command exiting non-zero
8
-set -e
+set -eo pipefail
9
10
# absolute path to current directory
11
export THIS_DIR=$(cd $(dirname $0); pwd)
@@ -68,8 +68,7 @@ fi
68
69
make discovery-url
70
# 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)
+STACK_TAG=${STACK_TAG:-test}-$(openssl rand -hex 4)
73
STACK_NAME=deis-$STACK_TAG
74
echo "Creating CloudFormation stack $STACK_NAME"
75
$DEIS_ROOT/contrib/ec2/provision-ec2-cluster.sh $STACK_NAME
0 commit comments