~canonical-platform-qa/qa-jenkins-jobs/update-chroot-builder

« back to all changes in this revision

Viewing changes to jobs/ubuntu-system-tests/ubuntu-system-tests-run-tests-builder.sh

  • Committer: Tarmac
  • Author(s): Richard Huddie
  • Date: 2017-02-15 17:08:44 UTC
  • mfrom: (211.2.11 qa-jenkins-jobs)
  • Revision ID: tarmac-20170215170844-6qbgb2i0931zpn9l
Add grafana builders to ust app launch tests.

Approved by Max Brustkern, Sergio Cazzolato, platform-qa-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
set -x
3
3
 
4
4
export UBUNTU_SYSTEM_TESTS_BRANCH=lp:ubuntu-system-tests
5
 
export SHARED_IMG_PATH=/var/cache/ust/img/$RELEASE-unity8-$PACKAGE.img
 
5
export SHARED_IMG_PATH=/var/cache/ust/img/$RELEASE-$MODEL-$ARCH-unity8-$UNITY8_MODE.img
6
6
export OUTPUTDIR=$WORKSPACE/results
7
7
export CONFIG_PATH=$WORKSPACE/ubuntu-system-tests.conf
8
 
export FILTER_TEST_LAUNCH_APPS_ONCE=filter:169737
9
 
export FILTER_TEST_LAUNCH_APPS_TWICE=filter:169738
10
8
export https_proxy=https://squid.internal:3128/
11
9
 
12
10
rm -rf $OUTPUTDIR
22
20
cd ubuntu-system-tests
23
21
python3 setup.py develop
24
22
 
25
 
# Run tests on the image.
26
 
# For qemu this will use a temporary overlay image by default,
27
 
# so we can use the shared image directly as base.
28
 
python3 -m ubuntu_system_tests.run run --headless --silent --config $CONFIG_PATH --img $SHARED_IMG_PATH --filters $FILTER_TEST_LAUNCH_APPS_ONCE
29
 
 
30
 
# Run next set of tests, appending results to previous results
31
 
python3 -m ubuntu_system_tests.run run --headless --silent --config $CONFIG_PATH --img $SHARED_IMG_PATH --append-results --filters $FILTER_TEST_LAUNCH_APPS_TWICE
 
23
# Run tests from each test filter
 
24
for FILTER in $FILTERS; do
 
25
    python3 -m ubuntu_system_tests.run run --headless --silent --config $CONFIG_PATH --img $SHARED_IMG_PATH $APPEND_RESULTS --filters $FILTER
 
26
    # Use --append-results arg for all test runs but the first
 
27
    if [ -z $APPEND_RESULTS ]; then
 
28
        APPEND_RESULTS="--append-results"
 
29
    fi
 
30
done
32
31
 
33
32
deactivate # our virtualenv