sos_testing/lxd_profile.yaml

54 lines
1.1 KiB
YAML

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