~ted/ubuntu-app-launch/uri-splitting

« back to all changes in this revision

Viewing changes to test-conffile.sh

  • Committer: Ted Gould
  • Date: 2013-07-02 17:17:08 UTC
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: ted@gould.cx-20130702171708-ij5jts8i99903t9c
Flipping around the test and just printing debug info if we fail

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
UPSTARTVERSION=`initctl version | sed 's/[[:alpha:]\)|(|[:space:]]//g' | awk -F- '{print $1}' | awk -F. '{print $2}'`
4
4
 
5
 
if [ ${UPSTARTVERSION} -lt 8 ] ; then
6
 
# Old upstart on builders, don't test
7
 
        true
 
5
# Only test on newer versions of Upstart, like not the
 
6
# versions on the builders
 
7
if [ ${UPSTARTVERSION} -gt 7 ] ; then
 
8
        init-checkconf $1
8
9
else
9
 
        init-checkconf $1
 
10
        echo "Upstart Version: $UPSTARTVERSION"
 
11
        echo "  ....Skipping Tests"
10
12
fi