~pwlars/ubuntu-test-cases/auto-offline-devices

« back to all changes in this revision

Viewing changes to utils/target/prepare-autopilot-test.sh

  • Committer: Andy Doan
  • Date: 2014-04-23 19:21:18 UTC
  • mto: This revision was merged to the branch mainline in revision 221.
  • Revision ID: andy.doan@canonical.com-20140423192118-pc37rpziylei3nni
add bootchart test

In order to comply with the qa-dashboard expectations, this test
produces a "boot.json" file that re-labels steps to things it
expects like xorg

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
#installs dependencies so an autopilot test case can run
 
5
#installs dependencies and unlocks screen so an autopilot test case can run
6
6
 
7
7
if [ -n "$PKGS" ] ; then
8
8
        MISSING=0
9
9
        dpkg -s $PKGS 2>/dev/null >/dev/null || MISSING=1
10
10
        if [ $MISSING -eq 1 ] ; then
11
 
                sudo apt-get install -yq --force-yes $PKGS
 
11
                apt-get install -yq --force-yes $PKGS
12
12
        else
13
13
                echo "setup not needed"
14
14
        fi
15
15
fi
 
16
[ -z $NO_UNLOCK ] && /home/phablet/bin/unlock_screen.sh
16
17
exit 0