[elbe-devel] [PATCH v3 7/7] commands: check-build: Add rebuild command

Olivier Dion dion at linutronix.de
Thu Aug 20 18:02:15 CEST 2020


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>
Reviewed-by: Bastian Germann <bage at linutronix.de>
---
 elbepack/commands/check-build.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/elbepack/commands/check-build.py b/elbepack/commands/check-build.py
index d918b1cc..ff1e2a9c 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
@@ -612,3 +613,8 @@ exit 1
         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)
-- 
2.28.0



More information about the elbe-devel mailing list