@@ -1,7 +1,7 @@
import sys, os, time, commands, re, logging, signal, glob, threading, shutil
from autotest_lib.client.bin import test, utils
from autotest_lib.client.common_lib import error
-import kvm_vm, kvm_utils, kvm_subprocess, kvm_monitor, ppm_utils
+import kvm_vm, kvm_utils, kvm_subprocess, kvm_monitor, ppm_utils, test_setup
try:
import PIL.Image
except ImportError:
@@ -258,6 +258,10 @@ def preprocess(test, params, env):
h = kvm_utils.HugePageConfig(params)
h.setup()
+ if params.get("type") == "unattended_install":
+ u = test_setup.UnattendedInstallConfig(test, params)
+ u.setup()
+
# Execute any pre_commands
if params.get("pre_command"):
process_command(test, params, env, params.get("pre_command"),
@@ -97,7 +97,6 @@ variants:
kill_vm_gracefully = yes
kill_vm_on_error = yes
force_create_image = yes
- pre_command += " scripts/unattended.py;"
extra_params += " -boot d"
guest_port_unattended_install = 12323
kernel = vmlinuz
@@ -381,7 +380,6 @@ variants:
# The support VM is identical to the tested VM in every way
# except for the image name which ends with '-supportvm'.
type = unattended_install
- pre_command += " scripts/unattended.py;"
extra_params += " -boot d"
force_create_image = yes
kill_vm = yes