summaryrefslogtreecommitdiffstats
path: root/test/afb-test
diff options
context:
space:
mode:
authorFrederic Marec <frederic.marec@iot.bzh>2019-05-27 15:41:47 +0200
committerFrederic Marec <frederic.marec@iot.bzh>2019-05-27 16:45:46 +0200
commit04811a50849242c970535cab2e4fddfb65762461 (patch)
tree99600d0d9999bc8f154e058dd4b2106a728b1ceb /test/afb-test
parent15662d44aa2f827a676dc0fc4dc3230cbe61bda1 (diff)
Fix get test due to wrong level tree Change set down environement to avoid useless remove Bug-AGL: SPEC-2457 Change-Id: If61ef13b11af532cc2086a434e9b0c7757418f98 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
Diffstat (limited to 'test/afb-test')
-rw-r--r--[-rwxr-xr-x]test/afb-test/fixtures/removePlatforInfoDirectory.sh2
-rw-r--r--test/afb-test/tests/aft-BasicAPITests.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/afb-test/fixtures/removePlatforInfoDirectory.sh b/test/afb-test/fixtures/removePlatforInfoDirectory.sh
index 8e87636..d23c2fb 100755..100644
--- a/test/afb-test/fixtures/removePlatforInfoDirectory.sh
+++ b/test/afb-test/fixtures/removePlatforInfoDirectory.sh
@@ -23,4 +23,4 @@ set -e
#set SUDO variable
SUDO=$(command -v sudo)
-"${SUDO}" rm -rf "/etc/platform-info"
+"${SUDO}" rm -rf "/etc/platform-info/*"
diff --git a/test/afb-test/tests/aft-BasicAPITests.lua b/test/afb-test/tests/aft-BasicAPITests.lua
index 73cdd8e..b2d4bdd 100644
--- a/test/afb-test/tests/aft-BasicAPITests.lua
+++ b/test/afb-test/tests/aft-BasicAPITests.lua
@@ -53,7 +53,7 @@ _AFT.setBeforeAll(function()
end)
-- This tests the 'get' verb of the platform-info API
-_AFT.testVerbStatusSuccess(testPrefix.."get", "platform-info", "get", ".build.layers.agl-manifest.revision")
+_AFT.testVerbStatusSuccess(testPrefix.."get", "platform-info", "get", ".layers.agl-manifest")
-- This tests the 'get' verb of the platform-info API
_AFT.testVerbStatusSuccess(testPrefix.."get", "platform-info", "get", {})