~bluetooth/bluez/fix-ctrl-enablement-on-detection

« back to all changes in this revision

Viewing changes to debian/tests/bluez_response

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2015-08-14 14:28:28 UTC
  • Revision ID: mathieu.trudel-lapierre@canonical.com-20150814142828-qj3xyx4swe3k7xbo
Tags: 5.33-0ubuntu2
releasing package bluez version 5.33-0ubuntu2

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  devices = {}
12
12
 
13
13
  def setUp(self):
14
 
    # start a local fake system D-BUS
15
 
    dbus = subprocess.Popen(['dbus-daemon', '--nofork', '--print-address',
16
 
                            '--config-file',
17
 
                            os.path.join(aptdaemon.test.get_tests_dir(), 'dbus.conf')],
18
 
                            stdout=subprocess.PIPE, universal_newlines=True)
19
 
    dbus_address = dbus.stdout.readline().strip()
20
 
    os.environ['DBUS_SYSTEM_BUS_ADDRESS'] = dbus_address
21
 
 
22
 
    subprocess.call(['bluetoothd'])
 
14
    # bluetoothd starts on demand, so make sure it's running
 
15
    subprocess.call(['service', 'bluetooth', 'start'])
23
16
    p1 = subprocess.Popen(['hciconfig'],
24
17
                          stdout=subprocess.PIPE,
25
18
                          universal_newlines=True)