mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
ci/lava: Make it easier to run pytest locally
If we don't have ${CI_PROJECT_DIR} set, just find it from where we're
running the script.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30978>
This commit is contained in:
parent
eae6e122ab
commit
3fd72266cd
1 changed files with 5 additions and 1 deletions
|
|
@ -6,7 +6,11 @@
|
|||
# This script runs unit/integration tests related with LAVA CI tools
|
||||
# shellcheck disable=SC1091 # The relative paths in this file only become valid at runtime.
|
||||
|
||||
set -ex
|
||||
set -exu
|
||||
|
||||
if [ -z "${CI_PROJECT_DIR:-}" ]; then
|
||||
CI_PROJECT_DIR="$(dirname "${0}")/../../"
|
||||
fi
|
||||
|
||||
# Use this script in a python virtualenv for isolation
|
||||
python3 -m venv .venv
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue