summaryrefslogtreecommitdiff
path: root/tests/test_inject.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2019-06-12 16:56:37 -0400
committerCole Robinson <crobinso@redhat.com>2019-06-13 14:00:04 -0400
commitb746d919a957894f7be68966ebb313fb59fe4ee9 (patch)
tree507e62a418b36ce31eacdac412564e415ff0c966 /tests/test_inject.py
parentb50ecd2bf10a614f4eb86cc48797c5107b0efe4c (diff)
downloadvirt-manager-b746d919a957894f7be68966ebb313fb59fe4ee9.tar.gz
virt-install: Add --install kernel_args=X,kernel_args_overwrite=yes|no
--install kernel_args=X acts like --extra-args. If kernel_args_overwrite=yes is also specified, it overwrites whatever default kernel args we would have used for the install method.
Diffstat (limited to 'tests/test_inject.py')
-rwxr-xr-xtests/test_inject.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_inject.py b/tests/test_inject.py
index 9c2a1316..f4c164ec 100755
--- a/tests/test_inject.py
+++ b/tests/test_inject.py
@@ -82,7 +82,8 @@ def _test_distro(distro):
cmd = ("./virt-install --connect qemu:///system "
"--name __virtinst__test__initrd__ --ram 2048 "
"--transient --destroy-on-exit --disk none "
- "--location %s --initrd-inject %s --extra-args %s" %
+ "--location %s --initrd-inject %s "
+ "--install kernel_args=%s,kernel_args_overwrite=yes" %
(distro.url, distro.filename, append))
print("\n\n" + cmd)
os.system(cmd)