[1/1] testsuite: fix ccache test

Message ID 20220509051429.3087484-1-adriaan.schmidt@siemens.com
State Accepted, archived
Headers show
Series [1/1] testsuite: fix ccache test | expand

Commit Message

Schmidt, Adriaan May 8, 2022, 9:14 p.m. UTC
Adapt the ccache test to the "new" testsuite API.

Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
---
 testsuite/cibase.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Comments

Anton Mikanovich May 16, 2022, 1:31 a.m. UTC | #1
09.05.2022 08:14, Adriaan Schmidt wrote:
> Adapt the ccache test to the "new" testsuite API.
>
> Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
> ---
>   testsuite/cibase.py | 7 ++-----
>   1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/testsuite/cibase.py b/testsuite/cibase.py
> index b25c356e..a1494ce6 100755
> --- a/testsuite/cibase.py
> +++ b/testsuite/cibase.py
> @@ -45,11 +45,8 @@ class CIBaseTest(CIBuilder):
>               # Try to build with changed configuration with no cleanup
>               self.bitbake(targets, **kwargs)
>   
> -    def perform_ccache_test(self, targets):
> -        build_dir, bb_args = self.prep('Isar ccache build', targets, 0, 0)
> -
> -        self.deletetmp(build_dir)
> -        process.run('rm -rf ' + build_dir + '/ccache', sudo=True)
> +    def perform_ccache_test(self, targets, **kwargs):
> +        self.configure(ccache=True, **kwargs)
>   
>           self.delete_from_build_dir('tmp')
>           self.delete_from_build_dir('ccache')

Applied to next, thanks.

Patch

diff --git a/testsuite/cibase.py b/testsuite/cibase.py
index b25c356e..a1494ce6 100755
--- a/testsuite/cibase.py
+++ b/testsuite/cibase.py
@@ -45,11 +45,8 @@  class CIBaseTest(CIBuilder):
             # Try to build with changed configuration with no cleanup
             self.bitbake(targets, **kwargs)
 
-    def perform_ccache_test(self, targets):
-        build_dir, bb_args = self.prep('Isar ccache build', targets, 0, 0)
-
-        self.deletetmp(build_dir)
-        process.run('rm -rf ' + build_dir + '/ccache', sudo=True)
+    def perform_ccache_test(self, targets, **kwargs):
+        self.configure(ccache=True, **kwargs)
 
         self.delete_from_build_dir('tmp')
         self.delete_from_build_dir('ccache')