• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2# SPDX-License-Identifier: MIT
3# © Collabora Limited
4# Author: Guilherme Gallo <guilherme.gallo@collabora.com>
5
6# This script runs unit/integration tests related with LAVA CI tools
7# shellcheck disable=SC1091 # The relative paths in this file only become valid at runtime.
8
9set -ex
10
11# Use this script in a python virtualenv for isolation
12python3 -m venv .venv
13. .venv/bin/activate
14python3 -m pip install --break-system-packages -r "${CI_PROJECT_DIR}/.gitlab-ci/lava/requirements-test.txt"
15
16TEST_DIR=${CI_PROJECT_DIR}/.gitlab-ci/tests
17
18PYTHONPATH="${TEST_DIR}:${PYTHONPATH}" python3 -m \
19    pytest "${TEST_DIR}" \
20            -W ignore::DeprecationWarning \
21            --junitxml=artifacts/ci_scripts_report.xml \
22            -m 'not slow'
23