~fginther/auto-package-testing/release-from-command-line

« back to all changes in this revision

Viewing changes to bin/testbed/run-adt

  • Committer: Jean-Baptiste Lallement
  • Date: 2012-10-25 09:25:01 UTC
  • Revision ID: jean-baptiste.lallement@ubuntu.com-20121025092501-5kfmlej7j6kup9qf
Project structure clean-up

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
if [ $USE_PROPOSED -eq 1 ]; then
95
95
    release=$( lsb_release -cs )
96
96
    proposed=${release}-proposed
97
 
    sourceslist=/etc/apt/sources.list.d/${release}-proposed.list
 
97
    sourceslist=/etc/apt/sources.list.d/${proposed}.list
98
98
 
99
99
    echo -n "Enabling $proposed ... "
100
100
    cat > $sourceslist <<EOF 
114
114
rm -f /var/crash/*
115
115
 
116
116
mkdir -p $ADTLOG_PATH
117
 
ADTOPTS="-d --paths-host --summary $ADTLOG_PATH/summary.log --tmp-dir=$ADTLOG_PATH/ --leave-lang"
 
117
ADTOPTS="-d --paths-host --summary $ADTLOG_PATH/summary.log --tmp-dir=$ADTLOG_PATH/ --no-built-binaries --leave-lang"
118
118
 
119
119
# Disabled for the moment, worked around in software-center
120
120
# Patch adt-run debian bug #686292
127
127
    else
128
128
        apt-get source $PKGNAME
129
129
        cd ${PKGNAME}*
130
 
        [ $DONT_RUN -eq 0 ] && adt-run $ADTOPTS --no-built-binaries --unbuilt-tree . --- adt-virt-null
 
130
        [ $DONT_RUN -eq 0 ] && adt-run $ADTOPTS --unbuilt-tree . --- adt-virt-null
131
131
    fi
132
132
    RC=$?
133
133
fi
137
137
 
138
138
chown -R ubuntu $ADTLOG_PATH 
139
139
chmod og+r /var/log/syslog || true
140
 
chmod og+r /var/crash/* || true
 
140
chmod og+r /var/crash/* 2>/dev/null || true
141
141
 
142
142
exit $RC