~ubuntu-test-case-dev/ubuntu-test-cases/mp-testing-vivid

« back to all changes in this revision

Viewing changes to scripts/run-autopilot-tests.sh

  • Committer: Francis Ginther
  • Date: 2014-11-04 19:15:46 UTC
  • Revision ID: francis.ginther@canonical.com-20141104191546-257cc2r6hlve8g0a
Add env var to skip any package install performed via testconfig. Collect some logs useful to MP testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        {
39
39
                pkgs=$(${BASEDIR}/jenkins/testconfig.py packages -a $app)
40
40
                if [ "$label" = "setup" ] ; then
41
 
                        adb-shell sudo apt-get install -yq --force-yes $pkgs
 
41
                        if [ -z "${SKIP_TESTCONFIG}" ]; then
 
42
                                adb-shell sudo apt-get install -yq --force-yes $pkgs
 
43
                        fi
42
44
                else
43
 
                        #Always remove dbus-x11 because it causes
44
 
                        #problems when we leave it around
45
 
                        pkgs="$pkgs dbus-x11"
46
 
                        adb-shell sudo apt-get autoremove --purge -y $pkgs \
47
 
                                || /bin/true
 
45
                        if [ -z "${SKIP_TESTCONFIG}" ]; then
 
46
                                #Always remove dbus-x11 because it causes
 
47
                                #problems when we leave it around
 
48
                                pkgs="$pkgs dbus-x11"
 
49
                                adb-shell sudo apt-get autoremove --purge -y $pkgs || /bin/true
 
50
                        fi
48
51
                fi
49
52
                echo $? > ${odir}/setup_${label}.rc
50
53
        } 2>&1 | tee ${odir}/setup_${label}.log
101
104
        adb shell mkdir /tmp/ci-logs
102
105
        adb shell sudo install -o phablet \
103
106
                -m 666 /var/log/upstart/whoopsie.log /tmp/ci-logs
 
107
        adb-shell "sudo system-image-cli --info > /tmp/ci-logs/system-image-cli.log"
 
108
        adb-shell "dpkg -l > /tmp/ci-logs/dpkg-l.log"
104
109
        adb pull /tmp/ci-logs ${odir}
105
110
 
106
111
        system_settle after $odir