mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
v2v: tests: Fix -i vmx test so it is more stable.
When running under valgrind, the process takes a fraction of a second
to start up, changing the "Opening the guest" timestamp, which broke
the test.
Fixes commit ca40078cdd.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[ 0.0] Opening the source -i vmx test-v2v-i-vmx-1.vmx
|
||||
|
||||
Source guest information (--print-source option):
|
||||
|
||||
source name: BZ1308535_21disks
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[ 0.0] Opening the source -i vmx test-v2v-i-vmx-2.vmx
|
||||
|
||||
Source guest information (--print-source option):
|
||||
|
||||
source name: Fedora 20
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[ 0.0] Opening the source -i vmx test-v2v-i-vmx-3.vmx
|
||||
|
||||
Source guest information (--print-source option):
|
||||
|
||||
source name: RHEL 7.1 UEFI
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[ 0.0] Opening the source -i vmx test-v2v-i-vmx-4.vmx
|
||||
|
||||
Source guest information (--print-source option):
|
||||
|
||||
source name: Windows 7 x64
|
||||
|
||||
@@ -37,6 +37,7 @@ for i in 1 2 3 4; do
|
||||
# Normalize the print-source output.
|
||||
mv test-v2v-i-vmx-$i.actual test-v2v-i-vmx-$i.actual.old
|
||||
sed \
|
||||
-e "s,.*Opening the source.*,," \
|
||||
-e "s,$(pwd),," \
|
||||
< test-v2v-i-vmx-$i.actual.old > test-v2v-i-vmx-$i.actual
|
||||
rm test-v2v-i-vmx-$i.actual.old
|
||||
|
||||
Reference in New Issue
Block a user