[Libguestfs] [PATCH v2 2/5] v2v: add fake rhev-apt.exe

Roman Kagan rkagan at virtuozzo.com
Thu Oct 8 13:50:33 UTC 2015


Without rhev-apt.exe the code path where firstboot scripts are created
isn't taken, so it isn't tested and v2v/test-v2v-windows-conversion.sh
is supposed to fail (it actually doesn't but for another reason,
addressed in a followup patch).

Signed-off-by: Roman Kagan <rkagan at virtuozzo.com>
---
changes since v1:
 - relocated fake-virt-tools under v2v
 - packaged fake-virt-tools

 v2v/Makefile.am                  | 3 ++-
 v2v/fake-virt-tools/rhev-apt.exe | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
 create mode 100644 v2v/fake-virt-tools/rhev-apt.exe

diff --git a/v2v/Makefile.am b/v2v/Makefile.am
index e3fa1b5..9af5d2c 100644
--- a/v2v/Makefile.am
+++ b/v2v/Makefile.am
@@ -109,7 +109,8 @@ SOURCES_C = \
 
 fake_virt_tools_dir = fake-virt-tools
 FAKE_VIRT_TOOLS = \
-	$(fake_virt_tools_dir)/rhsrvany.exe
+	$(fake_virt_tools_dir)/rhsrvany.exe \
+	$(fake_virt_tools_dir)/rhev-apt.exe
 
 if HAVE_OCAML
 
diff --git a/v2v/fake-virt-tools/rhev-apt.exe b/v2v/fake-virt-tools/rhev-apt.exe
new file mode 100644
index 0000000..2f472e5
--- /dev/null
+++ b/v2v/fake-virt-tools/rhev-apt.exe
@@ -0,0 +1 @@
+This is a fake rhev-apt.exe, used for testing only
-- 
2.4.3




More information about the Libguestfs mailing list