[elbe-devel] [PATCH v2 6/6] commands: check-build: Add rebuild command

Bastian Germann bage at linutronix.de
Tue Aug 4 17:04:49 CEST 2020


Am 03.08.20 um 18:40 schrieb Olivier Dion:
> This checker submit to the initvm the bin-cdrom.iso of a build and to
> try to rebuild it.

Please use the following description: "This checker submits the
bin-cdrom.iso of a build to the initvm and tries to rebuild it."

> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>

With the suggested change:
Reviewed-by: Bastian Germann <bage at linutronix.de

> ---
>  elbepack/commands/check-build.py | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/elbepack/commands/check-build.py b/elbepack/commands/check-build.py
> index 98b8793f..fa3845c7 100644
> --- a/elbepack/commands/check-build.py
> +++ b/elbepack/commands/check-build.py
> @@ -13,6 +13,7 @@ import traceback
>  
>  import pexpect
>  
> +from elbepack.directories import elbe_exe
>  from elbepack.log import elbe_logging
>  from elbepack.treeutils import etree
>  from elbepack.shellhelper import get_command_out, command_out, do, CommandError
> @@ -620,3 +621,10 @@ exit 1
>          xml  = etree("source.xml")
>          for sdk in glob.glob("setup-elbe-sdk*"):
>              self.do_sdk(sdk)
> +
> +
> + at CheckBase.register("rebuild")
> +class CheckRebuild(CheckBase):
> +
> +    def run(self):
> +        do("%s initvm submit bin-cdrom.iso" % elbe_exe)
> 


More information about the elbe-devel mailing list