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

Viewing all changes in revision 106.1.1.

  • Committer: Andy Doan
  • Date: 2013-10-31 17:53:58 UTC
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: andy.doan@canonical.com-20131031175358-aqi1jvck4u9teeqw
fix some ADB device errors found in MEGA job testing

1) The test_app function needed updating because due to the way
shell scripts work, "set -e" can't be honored in that function.
eg: http://paste.ubuntu.com/6332997/

2) add retry logic for run-autopilot-tests.sh

We are seeing devices disappear for a bit after reboot. This
doesn't happen in production, but has been seen at home. Its likely
related to MTP coming up on the device which temporarily kills ADB.

Why it doesn't happen in production must be related to how the jobs
are structured slightly differently.

This includes a new "log_error" function. This makes it easier to
go back and see how often these flaky things are happening. eg:

  http://10.97.9.20:8080/job/tmp-trusty-touch-mako/5/artifact/clientlogs/runner-errors.txt/*view*/

That test had to be repeated for some odd reason.

3) reboot-and-wait should make sure device is online first:
example failure w/o the fix:

  http://10.97.9.20:8080/job/tmp-trusty-touch-mako/2/console

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: