From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7020716408055005184 X-Received: by 2002:a05:600c:350f:: with SMTP id h15mr12536440wmq.62.1634724235134; Wed, 20 Oct 2021 03:03:55 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:3b13:: with SMTP id m19ls777609wms.0.gmail; Wed, 20 Oct 2021 03:03:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbveUFt2ycS4+/EZlw7dX274zYY9umVdPftaErxV11BlEayHTHvTrVtr9mCKyaF4xPYZOd X-Received: by 2002:a05:600c:4111:: with SMTP id j17mr12518175wmi.59.1634724234176; Wed, 20 Oct 2021 03:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634724234; cv=none; d=google.com; s=arc-20160816; b=V8LA6+lBSXyA32Jy8Hs351ue6ainOHRwwiJffWNkCk8lVk/Hw6CnpXmRrEE13+YtPI GK5uNW+A3Ib7Ff7HvlSMDqrga2ObzsnxnnhLtoe7IS7AU04doKAZlpTWDQiDjfWQ4wVd Mbc3zsmsJpbJoghnrENGy9ODVXuNGcDJUsOqQh2Ntt5hkyJOoLUlh5auZUtOJqqKRSID tUDIgh7IRn9henl5mJTmw6unx2OYgkN35bmazwNlZ2e89AH9Sio+88t8s2qjKicOaciH +PUiSm1clrnQZgw1h4l/yhDqLSqDrcJDcwUua0BhFlL250c09eTAzLPD9TZuCYI0xLkx sfnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=lpBW1FoGm3JQow/jFyyAmknZsXx3ebP0Fx30OzvOO5s=; b=z97fDVTi6R6QeGEIhyALg1BxqJQAA54emJbmDUXGr118X5yqpoy7TcK/4dwEhMbfEG 7JXNdoqNYmJKctuC6bAEau8y97Pyz4vfy+SmzEbd9M0cpk0lPfLW6mLPLi3Aq+mcy9m3 R3VHXnfmBQD89SkXB3cwzhyq2uNknUsx5kSHy7fxAf8ndY/RMhB3VmcrTKQUE7BEDBOq JMKix1AJ19DPGVHAMvW+je1PMBtfvXuJNWKq+1fJnveicWMdtKnY5cHS7PYt0UhbepoX CIkA/R7EuMszVulkj3mps+swPo7D2PVeD070w8mrxZ/azbnGYsVz5pnWkgEldaDNxzDy Jf3A== 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 h11si127259wrs.3.2021.10.20.03.03.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Oct 2021 03:03:54 -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 ws-323.promwad.corp (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 19KA3psU013877 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=NOT); Wed, 20 Oct 2021 12:03:51 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Henning Schild , Anton Mikanovich Subject: [PATCH v2 1/2] CI: install avocado in venv if host does not have it Date: Wed, 20 Oct 2021 13:03:40 +0300 Message-Id: <1634724221-26372-1-git-send-email-amikan@ilbers.de> X-Mailer: git-send-email 2.7.4 X-TUID: tDwXg8l52Bdq 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" -- 2.7.4