From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7020716408055005184 X-Received: by 2002:a05:651c:158e:: with SMTP id h14mr5630524ljq.503.1634637920584; Tue, 19 Oct 2021 03:05:20 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:4a1a:: with SMTP id x26ls3306749lja.11.gmail; Tue, 19 Oct 2021 03:05:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx62octvRUzxeeCIusLBQB8xExOQ+4MtXbz942Gy2efmucn9VDFclmpi0BsCgmo3BlKcdxN X-Received: by 2002:a2e:9e46:: with SMTP id g6mr5647212ljk.226.1634637919521; Tue, 19 Oct 2021 03:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634637919; cv=none; d=google.com; s=arc-20160816; b=kmw+fC4s1WmoKj8x24BQQAe4IYmxGGglFfiLyMSNcZduPZLewbirj5IgWvGVCqZLle rrDy8bAbRhGrHz601SP05CAQjsZffSuyLkjR1Y6Atj3IQqy7n5asW370ui+M2TAoFJb7 pc0olkdLdbGjpyfepNrLMmqhHy21GwsjAv2XsLDWNY20K7JSRwv9DGSRASx+7qlBZE6V NE1QIoB4vVSN4SglZlV4aWEKQThLQlkjWAI31ccrbn9aQqwl6l4yC/GzmiYmYgbc67A3 byJZp4bfJUC7/tHhRWhPbcfNfA6iG4V+8kfebGIGmftgqcpcfn1tgvhKEpxObBQDd2BO 5z4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=Q0hH1sheBl4QKEvdx6a42NnsS36jX/gq0w2A4csPXPE=; b=fx4UiOs46RUSMHgSts9QzOS9Mkx+LT3AAed4dH9FFKF6XeuPzWxkZLo96gSG9BYjxZ 5nHq7E8yEz5VXB1/AvPSKUtuQuQyWrOcxabDEV5oxrkWiQGUjX9gvIupKL9G2xbVGAFn sO+7P1jpDJD+C8PKQUDxduBqCzCZ/jtVfgptKzZLMOHj4WZ7pHDMURmVxOWXe7QUDacD gEZ4LrC8ovHWlrG+FqgbOYP8S+sXRU4cfJcBCp0uQLFrRCzKForqLLZv+T0AoHJx2Zc9 EaqQ0B9uI++mqgyC6w5GcTxvIE5l8KiRAmWLO02ND6o9sTxksc6ELeKjdiwbU7A91XG+ Y+2g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id c11si337000ljr.8.2021.10.19.03.05.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Oct 2021 03:05:19 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id 19JA5ICT012380 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 19 Oct 2021 12:05:18 +0200 Received: from localhost.localdomain ([167.87.2.56]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 19JA5ITw016696; Tue, 19 Oct 2021 12:05:18 +0200 From: Henning Schild To: isar-users@googlegroups.com Cc: Henning Schild Subject: [PATCH 1/2] CI: install avocado in venv if host does not have it Date: Tue, 19 Oct 2021 12:05:14 +0200 Message-Id: <20211019100515.611-1-henning.schild@siemens.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: gYwNR6oBo0gH Avodaco can not be properly depended on since it is not packaged in debian. It just comes via pip. On hosts that do not have it, let us use a virtualenv and expect they will be debian based and allow us to sudo. Which works well for the kas-isar container most people probably care about. Signed-off-by: Henning Schild --- scripts/ci_build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh index 4534957de1ac..74d190781249 100755 --- a/scripts/ci_build.sh +++ b/scripts/ci_build.sh @@ -14,6 +14,16 @@ 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 + pip install subprocess32 avocado-framework-plugin-varianter-yaml-to-mux +fi + # Get Avocado build tests path BUILD_TEST_DIR="$(pwd)/testsuite/build_test" -- 2.32.0