~andreserl/maas/qa-lab-tests-bionic

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -u -e
exec 2>&1

# If any post-install changes are needed, this is where they should go.

copy_logs() {
    debian/tests/copy_logs.py /var/log /var/lib/maas/dhcp /etc/maas
}
# http://imgur.com/LaJ9Kmo
trap copy_logs EXIT

# Run tests.
nosetests3 --verbose --stop --with-xunit --xunit-file=$ADT_ARTIFACTS/nosetests.xml debian/tests/maas-integration.py