From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 034C946971A for ; Fri, 6 Dec 2019 20:36:08 +0300 (MSK) From: Leonid Vasiliev Date: Fri, 6 Dec 2019 20:36:06 +0300 Message-Id: <9b39fc1af6ec310ce9de99201791410fbbc00e06.1575653203.git.lvasiliev@tarantool.org> Subject: [Tarantool-patches] [PATCH] Fix queue test preparing List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alexander.turenko@tarantool.org Cc: tarantool-patches@dev.tarantool.org Add redirect procesing and check of a commands exit code. --- test.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test.sh b/test.sh index 3fca125..32f7567 100755 --- a/test.sh +++ b/test.sh @@ -1,15 +1,17 @@ #!/bin/bash +set -euo pipefail + VERSION=${VERSION:-2_2} -curl https://packagecloud.io/tarantool/${VERSION}/gpgkey | sudo apt-key add - +curl -sfL https://packagecloud.io/tarantool/${VERSION}/gpgkey | sudo apt-key add - release=`lsb_release -c -s` sudo apt-get install -y apt-transport-https sudo tee /etc/apt/sources.list.d/tarantool_${VERSION}.list <<- EOF -deb https://packagecloud.io/tarantool/${VERSION}/ubuntu/ $release main -deb-src https://packagecloud.io/tarantool/${VERSION}/ubuntu/ $release main +deb https://packagecloud.io/tarantool/${VERSION}/ubuntu/ ${release} main +deb-src https://packagecloud.io/tarantool/${VERSION}/ubuntu/ ${release} main EOF sudo apt-get update > /dev/null -- 2.17.1