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 4001246971A for ; Fri, 6 Dec 2019 22:18:56 +0300 (MSK) References: <9b39fc1af6ec310ce9de99201791410fbbc00e06.1575653203.git.lvasiliev@tarantool.org> From: Leonid Vasiliev Message-ID: Date: Fri, 6 Dec 2019 22:18:55 +0300 MIME-Version: 1.0 In-Reply-To: <9b39fc1af6ec310ce9de99201791410fbbc00e06.1575653203.git.lvasiliev@tarantool.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [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 https://github.com/tarantool/queue/tree/lvasiliev/gh-noticket-fix-redirect-case On 12/6/19 8:36 PM, Leonid Vasiliev wrote: > 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 >