sos_testing/lxd_profile.yaml

54 lines
1.1 KiB
YAML
Raw Normal View History

2023-10-30 19:52:44 +00:00
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: virtual
type: disk
config:
user.user-data: |
#cloud-config
packages:
- python3-pip
- snapd
2024-04-16 14:35:04 +00:00
- tox
2023-10-30 19:52:44 +00:00
write_files:
- path: /root/setup.sh
permissions: '0755'
owner: root:root
content: |
#!bin/bash
sudo apt update --allow-releaseinfo-change
2024-04-16 14:35:04 +00:00
sudo apt -y purge sosreport
2023-10-30 19:52:44 +00:00
- path: /root/run_avocado.sh
permissions: '0755'
owner: root:root
content: |
#!bin/bash
mkdir -p /root/sos
cd /root/sos
tar xfz ../sos.tgz
2024-04-16 14:35:04 +00:00
git config --global --add safe.directory /root/sos
2023-10-30 19:52:44 +00:00
mkdir -p /etc/sos
cp sos.conf /etc/sos/sos.conf
2024-04-16 14:35:04 +00:00
echo "Cleaning up any old .tox environments ..."
rm -rf .tox
2023-10-30 19:52:44 +00:00
echo "Running Unit Tests ..."
2024-04-16 14:35:04 +00:00
tox -e unit_tests
2023-10-30 19:52:44 +00:00
echo "Running Stage One Tests ..."
2024-04-16 14:35:04 +00:00
tox -e stageone_tests
echo "Running Stage Two Tests ..."
tox -e stagetwo_tests
2023-10-30 19:52:44 +00:00
runcmd:
- [ /root/setup.sh ]