Update LISA setup in container image (#2710)

Co-authored-by: narrieta <narrieta>
This commit is contained in:
Norberto Arrieta 2022-12-07 15:31:42 -08:00 коммит произвёл GitHub
Родитель efc39df80b
Коммит cdb25bfdb4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 13 удалений

Просмотреть файл

@ -29,8 +29,8 @@ RUN \
# \
# Install LISA dependencies \
# \
apt-get install -y git gcc libgirepository1.0-dev libcairo2-dev qemu-utils libvirt-dev python3-venv && \
\
apt-get install -y git gcc libgirepository1.0-dev libcairo2-dev qemu-utils libvirt-dev \
python3-pip python3-venv && \
# \
# Create user waagent, which is used to execute the tests \
# \
@ -44,10 +44,6 @@ RUN \
USER waagent
RUN \
# \
# Install Poetry \
# \
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python3 - && \
export PATH="$HOME/.local/bin:$PATH" && \
\
# \
@ -56,13 +52,14 @@ RUN \
cd $HOME && \
git clone https://github.com/microsoft/lisa.git && \
cd lisa && \
poetry config virtualenvs.in-project true && \
make setup && \
\
python3 -m pip install --upgrade pip && \
python3 -m pip install --editable .[azure,libvirt] --config-settings editable_mode=compat && \
\
# \
# Install additional test dependencies \
# \
poetry add msrestazure && \
python3 -m pip install msrestazure && \
\
# \
# The setup for the tests depends on a couple of paths; add those to the profile \

Просмотреть файл

@ -2,6 +2,8 @@
set -euxo pipefail
cd "$HOME"
# The private ssh key is shared from the container host as $HOME/id_rsa; copy it to
# HOME/.ssh, set the correct mode and generate the public key.
mkdir "$HOME/.ssh"
@ -9,10 +11,7 @@ cp "$HOME/id_rsa" "$HOME/.ssh"
chmod 700 "$HOME/.ssh/id_rsa"
ssh-keygen -y -f "$HOME/.ssh/id_rsa" > "$HOME/.ssh/id_rsa.pub"
# Execute the tests, this needs to be done from the LISA root directory
cd "$HOME/lisa"
./lisa.sh \
lisa \
--runbook "$HOME/WALinuxAgent/tests_e2e/scenarios/runbooks/daily.yml" \
--log_path "$HOME/logs" \
--working_path "$HOME/logs" \