summaryrefslogtreecommitdiffstats
path: root/test/afb-test/tests
diff options
context:
space:
mode:
authorStoyan Bogdanov <stoyan.bogdanov@konsulko.com>2019-06-12 16:10:32 +0300
committerStoyan Bogdanov <stoyan.bogdanov@konsulko.com>2019-06-12 16:10:32 +0300
commit6c74c69a84a981241b9ee09c3cd9814d38aea381 (patch)
treeaea607b2ec6b1e77556b2829e8da1d00f1ac5c7c /test/afb-test/tests
parent4b4a3cd279caa075878dd08561c20ff22cf8f6d1 (diff)
tests: Fix gps test bindings
- Change the config.json prefix from aft- to aft-agl- to match required file name notation - Commented the unneed functions _AFT.setBeforeEach and _AFT.setAfterEachwhich which start and stop gpsfake for every single test. This lead to test crash. Without these functions all tests are able to pass. Bug-AGL: SPEC-2516 Signed-off-by: Stoyan Bogdanov <stoyan.bogdanov@konsulko.com> Change-Id: I935f40aaa23099bad8f93abfbabd85e79a2dd1ce
Diffstat (limited to 'test/afb-test/tests')
-rw-r--r--test/afb-test/tests/gps_BasicAPITest.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/afb-test/tests/gps_BasicAPITest.lua b/test/afb-test/tests/gps_BasicAPITest.lua
index 965f505..911ebab 100644
--- a/test/afb-test/tests/gps_BasicAPITest.lua
+++ b/test/afb-test/tests/gps_BasicAPITest.lua
@@ -20,6 +20,7 @@
local testPrefix ="gps_BasicAPITest_"
+--[[
_AFT.setBeforeEach(function()
os.execute("gpsfake -r -q ".._AFT.bindingRootDir.."/var/test.nmea &")
end)
@@ -29,7 +30,7 @@ _AFT.setAfterEach(function()
os.execute("pkill -f -9 gpsfake")
os.execute("pkill -9 gpsd")
end)
-
+--]]
-- This tests the 'subscribe' verb of the gps API
_AFT.testVerbStatusSuccess(testPrefix.."subscribe","gps","subscribe", {value = "location" },