~canonical-ci-engineering/jenkins-launchpad-plugin/autopilot-testrunner-otto-trusty-autopilot

« back to all changes in this revision

Viewing changes to medium-tests-generic/target-override/usr/local/bin/run-autopilot.sh

Use retries for apt-get and move shutdown to end of run-autopilot.sh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        sudo sh -c "echo 'Pin: origin ""' >> /etc/apt/preferences.d/local-pin-900"
54
54
        sudo sh -c "echo 'Pin-Priority: 600' >> /etc/apt/preferences.d/local-pin-900"
55
55
        cat /etc/apt/preferences.d/local-pin-900 >> $AP_SETUP_LOGFILE
56
 
        sudo apt-get update
 
56
        sudo sh -c "apt-get update || apt-get update || apt-get update"
57
57
        if [ -e ${DEB_SOURCE_DIR} ]; then
58
58
                # Taken from generic-medium-tests, using apt-get resolves any
59
59
                # dependencies.
112
112
        done < $AP_TESTSUITES
113
113
 
114
114
        echo "I: No test left to run" >> $AP_SETUP_LOGFILE
115
 
        sudo shutdown -h +1
116
115
}
117
116
 
118
117
install_debs
119
118
setup_tests
120
119
log_details
121
120
run_tests
 
121
 
 
122
sudo shutdown -h +1