From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7020716408055005184 X-Received: by 2002:a7b:c005:: with SMTP id c5mr14652027wmb.155.1634746253386; Wed, 20 Oct 2021 09:10:53 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:508a:: with SMTP id a10ls1347396wrt.1.gmail; Wed, 20 Oct 2021 09:10:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyksfgPz26IREbj8FPpwD2Alji9NwTFzlX3jH3bEFeNhtVNtkkbr4IPDGt6idpxJGpL4ygQ X-Received: by 2002:adf:c78d:: with SMTP id l13mr189876wrg.134.1634746252295; Wed, 20 Oct 2021 09:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634746252; cv=none; d=google.com; s=arc-20160816; b=rQJTISpZJFy2sDBWI/9EoOYxZFRk5NXDViuFJH5oY7T4UO68eGL+QnsdO2WZTwk/53 WKnwxVAS6vNFDB6cDLTVVnxwhSdIqID3awMGXvvQyAP5rm21oE6dB3BzQPMfEmswGIJW rC2PFrx6EF0LvLtikEhN5WFVp+JA/Zddg6kBcm8ns+rz2D/zRQ503mUc5N4Y7EtmiUpI 6+HYjOA1q93Ly5Y6lrreE/iRN9A+vnmcOZGVvlWmUmGll0lbvV+EuZToTa+0ap50UkyX 1vAPcM03GZ6e+bAbO1ENEZ7IcqxOm4XGSJWp0qxrDJnInhrO0HixlN4AHsl9oGyWUq+2 Z18w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=vJlULfjv9MhePVfM9TKKIGV7CiUdRNeNQCyZaWgyi1Y=; b=vOArZO29PYL67cynKYheUMsaVSQ18c76Zr9hqHz4pWtqVIr4/0hsQwNEmFozF0MgnN iGYwTxxbY+gkDgSgZdaif8O9D3lmzXQ1mmuMfiS/bJGbrGAqJrJUHXQFDrkgiyvuTNjB 36gvxOiUjnz424+pwbtUowRyAfHeQjiplqUCi2fj6sj5TZeLl/mLbhtL+IP7rYD+iiSw Wnc6hCOxJvG0pFSrmgzyC84mFJxafu7XUlhDJxhXhTFcWDo+OjMho4brG1ajttOYEiUA suhiMDkoR09zv5yPX0EWTCvZvah/dIbZlyhk/BvKC0XIiR7JacQR+K85nzWMuaKrSfcK A1CQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 26si452466wmk.0.2021.10.20.09.10.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Oct 2021 09:10:52 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from [10.54.4.214] (leased-line-st-87-252-252-30.telecom.by [87.252.252.30]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 19KGAnE0015249 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Oct 2021 18:10:49 +0200 Subject: Re: [PATCH v2 1/2] CI: install avocado in venv if host does not have it To: isar-users@googlegroups.com Cc: Henning Schild , Baurzhan Ismagulov References: <1634724221-26372-1-git-send-email-amikan@ilbers.de> From: Anton Mikanovich Message-ID: Date: Wed, 20 Oct 2021 19:10:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1634724221-26372-1-git-send-email-amikan@ilbers.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TUID: 7CU6UgfZ1agM On 20.10.21 13:03, Anton Mikanovich wrote: > From: Henning Schild > > Avocado packages are currently not available in Debian. Use virtualenv > and pip for sites that do not provide avocado as part of execution > environment. We expect the execution environment to be Debian-based and > to allow us to sudo (true for kas-isar container). > > Use version 88.0 as the latest working one from pip. > > Signed-off-by: Henning Schild > Signed-off-by: Anton Mikanovich > --- > scripts/ci_build.sh | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh > index 4534957..32054c4 100755 > --- a/scripts/ci_build.sh > +++ b/scripts/ci_build.sh > @@ -14,6 +14,17 @@ export PATH=$PATH:/sbin > # Go to Isar root > cd "$(dirname "$0")/.." > > +# install avocado in virtualenv in case it is not there already > +if ! command -v avocado > /dev/null; then > + sudo apt-get update -qq > + sudo apt-get install -y virtualenv > + rm -rf /tmp/avocado_venv > + virtualenv --python python3 /tmp/avocado_venv > + source /tmp/avocado_venv/bin/activate > + # The latest working version of Avocado framework > + pip install avocado-framework==88.0 > +fi > + > # Get Avocado build tests path > BUILD_TEST_DIR="$(pwd)/testsuite/build_test" > Applied to next. -- Anton Mikanovich Promwad Ltd. External service provider of ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn, Germany +49 (89) 122 67 24-0 Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov