From 04811a50849242c970535cab2e4fddfb65762461 Mon Sep 17 00:00:00 2001 From: Frederic Marec Date: Mon, 27 May 2019 15:41:47 +0200 Subject: Fix platform-info test 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 --- test/afb-test/fixtures/removePlatforInfoDirectory.sh | 2 +- test/afb-test/tests/aft-BasicAPITests.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 test/afb-test/fixtures/removePlatforInfoDirectory.sh (limited to 'test') diff --git a/test/afb-test/fixtures/removePlatforInfoDirectory.sh b/test/afb-test/fixtures/removePlatforInfoDirectory.sh old mode 100755 new mode 100644 index 8e87636..d23c2fb --- 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", {}) -- cgit 1.2.3-korg