Merge remote-tracking branch 'origin/pr/405'
* origin/pr/405: Test that quotes and ampersand are XML escaped
This commit is contained in:
commit
7c62e9703c
@ -961,7 +961,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
|
|||||||
<loader type="rom">hvmloader</loader>
|
<loader type="rom">hvmloader</loader>
|
||||||
<boot dev="cdrom" />
|
<boot dev="cdrom" />
|
||||||
<boot dev="hd" />
|
<boot dev="hd" />
|
||||||
<cmdline>kernel <text> specific options</cmdline>
|
<cmdline>kernel <text>'"& specific options</cmdline>
|
||||||
</os>
|
</os>
|
||||||
<features>
|
<features>
|
||||||
<pae/>
|
<pae/>
|
||||||
@ -1000,7 +1000,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
|
|||||||
open(os.path.join(kernel_dir, 'initramfs'), 'w').close()
|
open(os.path.join(kernel_dir, 'initramfs'), 'w').close()
|
||||||
with open(os.path.join(kernel_dir,
|
with open(os.path.join(kernel_dir,
|
||||||
'default-kernelopts-common.txt'), 'w') as f:
|
'default-kernelopts-common.txt'), 'w') as f:
|
||||||
f.write('kernel <text> specific options \n')
|
f.write('kernel <text>\'"& specific options \n')
|
||||||
self.addCleanup(shutil.rmtree, '/tmp/qubes-test')
|
self.addCleanup(shutil.rmtree, '/tmp/qubes-test')
|
||||||
vm.kernel = 'dummy'
|
vm.kernel = 'dummy'
|
||||||
libvirt_xml = vm.create_config_file()
|
libvirt_xml = vm.create_config_file()
|
||||||
|
Loading…
Reference in New Issue
Block a user