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

Olivier Dion dion at linutronix.de
Mon Aug 3 18:40:35 CEST 2020


This checker submit to the initvm the bin-cdrom.iso of a build and to
try to rebuild it.

Signed-off-by: Olivier Dion <dion 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)
-- 
2.28.0



More information about the elbe-devel mailing list