public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 1/1] testsuite: fix ccache test
@ 2022-05-09  5:14 Adriaan Schmidt
  2022-05-16  9:31 ` Anton Mikanovich
  0 siblings, 1 reply; 2+ messages in thread
From: Adriaan Schmidt @ 2022-05-09  5:14 UTC (permalink / raw)
  To: isar-users; +Cc: Adriaan Schmidt

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')
-- 
2.30.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] testsuite: fix ccache test
  2022-05-09  5:14 [PATCH 1/1] testsuite: fix ccache test Adriaan Schmidt
@ 2022-05-16  9:31 ` Anton Mikanovich
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Mikanovich @ 2022-05-16  9:31 UTC (permalink / raw)
  To: Adriaan Schmidt, isar-users

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-16  9:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09  5:14 [PATCH 1/1] testsuite: fix ccache test Adriaan Schmidt
2022-05-16  9:31 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox