~joetalbott/ubuntu-test-cases/memevent_browser

« back to all changes in this revision

Viewing changes to jenkins/jenkins.sh

  • Committer: Andy Doan
  • Date: 2013-08-23 23:40:53 UTC
  • mfrom: (79.1.5 simplify-touch)
  • Revision ID: andy.doan@canonical.com-20130823234053-x011z4a4qnz05txx
simplify touch test setup logic

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        BUILDID=`cat ${RESDIR}/media-info | awk '{ print $(NF)}' | sed -e 's/(//' -e 's/)//'`
34
34
        echo "= TOUCH BUILD DATE:$BUILDID"
35
35
 
36
 
        adb shell "top -n1 -b" > ${RESDIR}/top.log
 
36
        adb shell "top -n1 -b" > ${RESDIR}/top.log
37
37
 
38
38
        set -x
39
 
        adb shell 'rm -f /var/crash/*'
 
39
        adb shell 'rm -f /var/crash/*'
40
40
        if [ -z $QUICK ] ; then
41
41
                # get the phone in sane place
42
42
                adb -s ${ANDROID_SERIAL} reboot
51
51
                echo "SKIPPING phone reboot..."
52
52
        fi
53
53
 
54
 
        # push the screen unlocker
55
 
        adb push ${BASEDIR}/unlock_screen/unlock_screen.sh /usr/local/bin
56
 
        adb push ${BASEDIR}/unlock_screen/unlock_screen.py /usr/local/bin
57
54
        # push the runlist over to the test:
58
55
        adb push ${BASEDIR} ${TESTSUITE_TARGET_BASE} &> /dev/null
59
56
        ${UTAH_PHABLET_CMD} \
60
57
                -s ${ANDROID_SERIAL} \
61
58
                --results-dir ${RESDIR} \
62
59
                --skip-install --skip-network --skip-utah \
63
 
                --pull /var/crash \
 
60
                --pull /var/crash \
64
61
                -l ${TESTSUITE_TARGET}/master.run
65
 
        adb shell 'rm -f /var/crash/*'
 
62
        adb shell 'rm -f /var/crash/*'
66
63
 
67
64
        if ! `grep "^errors: [!0]" < $UTAHFILE >/dev/null` ; then
68
 
          echo "errors found"
69
 
          EXITCODE=1
 
65
                echo "errors found"
 
66
                EXITCODE=1
70
67
        fi
71
68
        if ! `grep "^failures: [!0]" < $UTAHFILE >/dev/null` ; then
72
 
          echo "failures found"
73
 
          EXITCODE=2
 
69
                echo "failures found"
 
70
                EXITCODE=2
74
71
        fi
75
 
        echo "Results Summary"
76
 
        echo "---------------"
77
 
        egrep '^(errors|failures|passes|fetch_errors):' $UTAHFILE
78
 
        exit $EXITCODE
 
72
        echo "Results Summary"
 
73
        echo "---------------"
 
74
        egrep '^(errors|failures|passes|fetch_errors):' $UTAHFILE
 
75
        exit $EXITCODE
79
76
}
80
77
 
81
78
trap cleanup TERM INT EXIT