Ubuntu Pastebin

Paste from smoser at Thu, 26 Oct 2017 18:16:21 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
set -f
mirror="http://archive.ubuntu.com/ubuntu/"
#  --test=tests/cloud_tests/testcases/modules/write_files.py
tests=(
 --test=tests/cloud_tests/testcases/modules/apt_configure_conf.py
 --test=tests/cloud_tests/testcases/modules/final_message.py
 --test=tests/cloud_tests/testcases/modules/user_groups.py
)

release=${1}
commitish=${2:-master}

(
set -x
git checkout "${commitish}" || { echo "failed checkout $commitish"; exit 1; }
echo "running on $commitish"

set -o pipefail
rm -Rf "../results-$release"
tox -e citest -- run \
    --platform=nocloud-kvm \
    --os-name="$release" \
    --repo="deb $mirror $release-proposed main" \
    --preserve-data \
    --data-dir="../results-$release" \
    --verbose \
    "${tests[@]}"
) 2>&1 | tee ../results-$release.log

ret=$?
echo "exit_value=$ret" >> ../results-$release.log

tar -C ../results-$release \
    -cJSf ../results-$release-artifacts.tar.xz "--exclude=*.qcow2" .

exit $ret
Download as text