summaryrefslogtreecommitdiff
path: root/test/navigation/test-guidance.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/navigation/test-guidance.py')
-rwxr-xr-xtest/navigation/test-guidance.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/test/navigation/test-guidance.py b/test/navigation/test-guidance.py
index 5c6e253..7d8cb90 100755
--- a/test/navigation/test-guidance.py
+++ b/test/navigation/test-guidance.py
@@ -38,11 +38,14 @@ import argparse
import sys
import errno
import time
-
+from dltTrigger import *
#import pdb;pdb.set_trace()
from pip import locations
+#name of the test
+test_name = "guidance"
+
#constants as defined in the Navigation API
GENIVI_NAVIGATIONCORE_LATITUDE = 0x00a0
GENIVI_NAVIGATIONCORE_LONGITUDE = 0x00a1
@@ -108,7 +111,7 @@ def session_sessionDeleted_handler(sessionHandle):
print 'Test PASSED'
else:
print 'Test FAILED'
- loop.quit()
+ exit()
def routing_routeDeleted_handler(routeHandle):
print('Route handle deleted: '+str(routeHandle))
@@ -144,8 +147,12 @@ def mapmatchedposition_simulationStatusChanged_handler(simulationStatus):
def timeout():
print 'Timeout Expired'
print '\nTest FAILED'
- loop.quit()
+ exit()
+def exit():
+ stopTrigger(test_name)
+ loop.quit()
+
def display_route(route):
g_mapviewercontrol_interface.DisplayRoute( \
dbus.UInt32(g_mapviewer_sessionhandle), \
@@ -295,6 +302,8 @@ bus.add_signal_receiver(mapmatchedposition_simulationStatusChanged_handler, \
dbus_interface = "org.genivi.navigationcore.MapMatchedPosition", \
signal_name = "SimulationStatusChanged")
+startTrigger(test_name)
+
navigationcore_session_obj = bus.get_object('org.genivi.navigationcore.Session','/org/genivi/navigationcore')
g_navigationcore_session_interface = dbus.Interface(navigationcore_session_obj, dbus_interface='org.genivi.navigationcore.Session')