~pwlars/ubuntu-test-cases/krillin-recovery

« back to all changes in this revision

Viewing changes to utils/target/autopilot-list

  • Committer: Chris Johnston
  • Date: 2013-08-30 17:40:26 UTC
  • mto: (19.1.1 touch)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: chrisjohnston@ubuntu.com-20130830174026-47dkp6obl6ub14uo
Add smoke-touch-apps tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
app=$1
 
4
pat=${2:-$app}
 
5
rep=${3:-$app.tests.}
 
6
 
 
7
if [ -z "$app" ] ; then
 
8
        echo "USAGE: $0 <app> [pattern] [replace]"
 
9
        exit 1
 
10
fi
 
11
 
 
12
curdir=$(pwd)
 
13
sudo -i -u phablet bash -ic "PYTHONPATH=$curdir autopilot list $app" | grep $pat | sed -e "s/^.*${rep}//"