Locally, I always want to reinstall hosts when I run a job. I imagine
others might also like this. Given that reinstallation depends on
profile availability (of which, "Do_not_install" and "N/A" are valid
depending on the configuration), can we just always reinstall like the
following?

Not-yet-signed-off-by: Nishanth Aravamudan <[email protected]>

diff --git a/frontend/afe/control_file.py b/frontend/afe/control_file.py
index 61e7f7d..0699cf7 100644
--- a/frontend/afe/control_file.py
+++ b/frontend/afe/control_file.py
@@ -86,6 +86,7 @@ def step_init():
     # a host object we use solely for the purpose of finding out the booted
     # kernel version, we use machines[0] since we already check that the same
     # kernel has been booted on all machines
+    step_reinstall()
     if len(kernel_list) > 1:
         kernel_host = hosts.create_host(machines[0])
 
@@ -108,6 +109,12 @@ def step_init():
             job.automatic_test_tag = kernel_host.get_kernel_ver()
         step_test()
 
+def step_reinstall():
+    def run(machine):
+        host = hosts.create_host(machine, initialize=False)
+        job.run_test('reinstall', host=host, disable_sysinfo=True)
+
+    job.parallel_simple(run, machines)
 
 def step_test():
 """ % CLIENT_KERNEL_TEMPLATE
diff --git a/server/control_segments/client_wrapper b/server/control_segments/cl
index 08e6018..c4c71cb 100644
--- a/server/control_segments/client_wrapper
+++ b/server/control_segments/client_wrapper
@@ -3,6 +3,7 @@ at = autotest_remote.Autotest()
 
 def run_client(machine):
     host = hosts.create_host(machine)
+    host.machine_install(timeout=3600)
     host.log_kernel()
    

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to