public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] CI: Fix paths for the latest Avocado version
@ 2021-10-22  6:51 Anton Mikanovich
  2021-10-22  7:57 ` [PATCH] CI: install avocado debian packages from isar-build.org Henning Schild
  2021-11-02 16:21 ` [PATCH] CI: Fix paths for the latest Avocado version Anton Mikanovich
  0 siblings, 2 replies; 7+ messages in thread
From: Anton Mikanovich @ 2021-10-22  6:51 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

We can't use relative path for logdir in Avocado 89.0+ because it fails with:

FileNotFoundError: [Errno 2] No such file or directory: '.../whiteboard'

Move to absolute paths to be able to use the latest version.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 scripts/ci_build.sh | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
index 32054c4a..5ff455e3 100755
--- a/scripts/ci_build.sh
+++ b/scripts/ci_build.sh
@@ -21,8 +21,7 @@ if ! command -v avocado > /dev/null; then
     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
+    pip install avocado-framework
 fi
 
 # Get Avocado build tests path
@@ -121,10 +120,10 @@ set -x
 mkdir -p .config/avocado
 cat <<EOF > .config/avocado/avocado.conf
 [datadir.paths]
-base_dir = $BUILD_DIR/
-test_dir = $BUILD_DIR/tests
-data_dir = $BUILD_DIR/data
-logs_dir = $BUILD_DIR/job-results
+base_dir = $(realpath $BUILD_DIR)/
+test_dir = $(realpath $BUILD_DIR)/tests
+data_dir = $(realpath $BUILD_DIR)/data
+logs_dir = $(realpath $BUILD_DIR)/job-results
 EOF
 export VIRTUAL_ENV="./"
 
-- 
2.20.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-02 16:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22  6:51 [PATCH] CI: Fix paths for the latest Avocado version Anton Mikanovich
2021-10-22  7:57 ` [PATCH] CI: install avocado debian packages from isar-build.org Henning Schild
2021-10-22  7:59   ` Henning Schild
2021-10-22  8:08   ` Henning Schild
2021-10-26  7:37   ` Anton Mikanovich
2021-10-26  8:02     ` Henning Schild
2021-11-02 16:21 ` [PATCH] CI: Fix paths for the latest Avocado version Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox