Merge remote-tracking branch 'origin/pr/405'

* origin/pr/405:
  Test that quotes and ampersand are XML escaped
This commit is contained in:
Marek Marczykowski-Górecki 2021-05-13 20:04:29 +02:00
commit 7c62e9703c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -961,7 +961,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
<loader type="rom">hvmloader</loader>
<boot dev="cdrom" />
<boot dev="hd" />
<cmdline>kernel &lt;text&gt; specific options</cmdline>
<cmdline>kernel &lt;text&gt;&#39;&#34;&amp; specific options</cmdline>
</os>
<features>
<pae/>
@ -1000,7 +1000,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
open(os.path.join(kernel_dir, 'initramfs'), 'w').close()
with open(os.path.join(kernel_dir,
'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')
vm.kernel = 'dummy'
libvirt_xml = vm.create_config_file()