@@ -0,0 +1,677 @@
+#!/usr/bin/env python%0Aimport os%0Aimport subprocess as subp%0Afrom subprocess import *%0Afrom avocado import Test%0A%0Aclass WifiScanAP(Test):%0A  def test():%0A%0A      targetDeviceMac = '8C:1A:BF:0D:31:A9'%0A      bluetoothChannel = '2'%0A      port = 1%0A%0A%0A      print(%22Bluetooth ping test: testing %22 + targetDeviceMac)%0A      p = subp.Popen(%5B'sudo', 'l2ping', '8C:1A:BF:0D:31:A9','-c', '5'%5D, stdout=subp.PIPE, stderr=subp.PIPE)%0A%0A      stdout, stderr = p.communicate()%0A      res = stdout.rstrip()%0A%0A      if %225 sent, 5 received%22 in res:%0A         self.log.debug(%22Bluetooth ping test succeeded: + res%22)%0A      else:%0A          self.fail(%22Bluetooth ping test: pinging %22 + targetDeviceMac + %22 failed%22)%0A%0A%0A

Create bluetooth_ping_test.py