~andrew-haigh-b/cdts/whitelist

« back to all changes in this revision

Viewing changes to checkbox-old/scripts/bluetooth_test

  • Committer: Brendan Donegan
  • Date: 2013-07-19 12:59:39 UTC
  • mfrom: (2229.2.40 checkbox)
  • Revision ID: brendan.donegan@canonical.com-20130719125939-rh6zq3b1txiqmken
Merged from lp:checkbox to bring in rest of dbus-api code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
import os
8
8
import re
9
9
import sys
 
10
import time
10
11
 
11
12
OBEX_RESPONSE_CODE = {
12
13
    0x10: "Continue",
90
91
                          "maybe obexftp is not installed")
91
92
        except CalledProcessError as e:
92
93
            return self._error_helper(expected_pattern, exception=e)
 
94
        finally:
 
95
            # Let the Bluetooth stack enough time to close the connection
 
96
            # before doing another test
 
97
            time.sleep(5)
93
98
 
94
99
    def send(self):
95
100
        logging.info("[ Send test ]".center(80, '='))