|
@@ -12,7 +12,7 @@ import string
|
|
|
import StringIO
|
|
|
|
|
|
class BatmanParser:
|
|
|
- batadv_vis = 'batadv_vis'
|
|
|
+ batadv_vis = 'batadv-vis'
|
|
|
mactranslation = string.maketrans('2367abef', '014589cd')
|
|
|
|
|
|
def sanitycheck(self):
|
|
@@ -20,12 +20,12 @@ class BatmanParser:
|
|
|
try:
|
|
|
testdata = subprocess.check_output([self.batadv_vis, '-f', 'jsondoc'])
|
|
|
except Exception as err:
|
|
|
- raise Exception("batadv_vis not found or incompatible: " + str(err))
|
|
|
+ raise Exception("batadv-vis not found or incompatible: " + str(err))
|
|
|
|
|
|
try:
|
|
|
check = json.loads(testdata)
|
|
|
except Exception as err:
|
|
|
- raise Exception("batadv_vis does not return valid JSON data: " + str(err))
|
|
|
+ raise Exception("batadv-vis does not return valid JSON data: " + str(err))
|
|
|
|
|
|
return True
|
|
|
|