1
0
mirror of https://gerrit.ovirt.org/vdsm synced 2026-02-05 12:46:23 +01:00
Files
vdsm/tests/container-shell
Roman Bednar d30b794dba add helper script for running storage test env
Getting a container test environment is currently not straight forward.

Add a helper script which starts a container from existing image used
in CI, similar to what travis uses.

Currently the root permissions are unfortunately required in order to
set correct labels on /run/udev, runnning as regular user fails with:

Error: failed to set file label on /run/udev: operation not permitted

Tested with: podman-3.0.1-7.module+el8.4.0+11311+9da8acfb.x86_64

Signed-off-by: Roman Bednar <rbednar@redhat.com>
Change-Id: I3b8ac7d53d131329d660a4cf99def67286b5e105
2021-07-22 11:40:36 +00:00

21 lines
393 B
Bash
Executable File

#!/bin/sh
export CI_PYTHON="python3"
export TRAVIS_CI=1
cd /vdsm
source automation/common.sh
# Make sure we have enough loop device nodes. Using 16 devices since with 8
# devices we have random mount failures.
create_loop_devices 16
install_lvmlocal_conf
trap teardown_storage EXIT
setup_storage
echo "To run tests use: tox -e <TOX_ENV>"
echo "To list tox environments use: tox -l"
bash