Skip to content

Commit e2c20b4

Browse files
matttbekuba-moo
authored andcommitted
contest: vm: add cmd to start VM in logs
In the logs, we can see the command used to build the VM, the selftests, etc. but not the one to run the VM. The command is now added to 'log_out', which will be dumped later to the 'stdout' file. Note that we could also move the line adding '> TREE CMD:' to log_out from tree_cmd() to tree_popen(), but that will also add the decoded_stacktrace.sh command to log_out, which will not contain the output of this command as it is redirected to another file. So maybe better not to modify 'tree_popen()' I suppose. Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
1 parent dc7450f commit e2c20b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contest/remote/lib/vm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def start(self, cwd=None):
200200
cmd += ["--cpus", cpus]
201201

202202
print(f"INFO{self.print_pfx} VM starting:", " ".join(cmd))
203+
self.log_out += "# " + " ".join(cmd) + "\n"
203204
self.p = self.tree_popen(cmd)
204205

205206
for pipe in [self.p.stdout, self.p.stderr]:

0 commit comments

Comments
 (0)