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:
Richard W.M. Jones
2017-04-12 08:32:58 +01:00
parent ac894baf75
commit ec61873d39
5 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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