Adjust REXML spec patch to correct line offsets for vagrant 0.11.2.

This commit is contained in:
Jarek Prokop 2025-01-07 18:58:17 +01:00
parent 417965d1a1
commit 92d5b6f6f8

View File

@ -19,7 +19,7 @@ diff --git a/spec/unit/action/start_domain_spec.rb b/spec/unit/action/start_doma
index 330612beb..af9999cf9 100644
--- a/spec/unit/action/start_domain_spec.rb
+++ b/spec/unit/action/start_domain_spec.rb
@@ -509,7 +509,8 @@
@@ -364,7 +364,8 @@
it 'should add the nvram element' do
expect(ui).to_not receive(:warn)
@ -29,7 +29,7 @@ index 330612beb..af9999cf9 100644
expect(libvirt_domain).to receive(:xml_desc).and_return(domain_xml, updated_domain_xml)
expect(libvirt_domain).to receive(:autostart=)
expect(domain).to receive(:start)
@@ -530,7 +531,8 @@
@@ -385,7 +385,8 @@
it 'should keep the XML element' do
expect(ui).to_not receive(:warn)
@ -39,7 +39,7 @@ index 330612beb..af9999cf9 100644
expect(libvirt_domain).to receive(:xml_desc).and_return(domain_xml, updated_domain_xml)
expect(libvirt_domain).to receive(:autostart=)
expect(domain).to receive(:start)
@@ -544,7 +546,8 @@
@@ -399,7 +399,8 @@
it 'should delete the XML element' do
expect(ui).to_not receive(:warn)
@ -49,7 +49,7 @@ index 330612beb..af9999cf9 100644
expect(libvirt_domain).to receive(:xml_desc).and_return(domain_xml, updated_domain_xml)
expect(libvirt_domain).to receive(:autostart=)
expect(domain).to receive(:start)
@@ -569,7 +572,8 @@
@@ -424,7 +424,8 @@
it 'should modify the domain tpm_path' do
expect(ui).to_not receive(:warn)
expect(logger).to receive(:debug).with('tpm config changed')
@ -59,7 +59,7 @@ index 330612beb..af9999cf9 100644
expect(libvirt_domain).to receive(:xml_desc).and_return(domain_xml, updated_domain_xml)
expect(libvirt_domain).to receive(:autostart=)
expect(domain).to receive(:start)
@@ -591,7 +595,8 @@
@@ -446,7 +446,8 @@
it 'should modify the domain tpm_path' do
expect(ui).to_not receive(:warn)
expect(logger).to receive(:debug).with('tpm config changed')
@ -69,7 +69,7 @@ index 330612beb..af9999cf9 100644
expect(libvirt_domain).to receive(:xml_desc).and_return(domain_xml, updated_domain_xml)
expect(libvirt_domain).to receive(:autostart=)
expect(domain).to receive(:start)
@@ -654,7 +659,8 @@
@@ -509,7 +509,8 @@
it 'should modify the domain' do
expect(ui).to_not receive(:warn)
expect(logger).to receive(:debug).with('tpm config changed')