test
This commit is contained in:
committed by
florent Beauchamp
parent
b61ab4c79a
commit
c76295e5c9
@@ -21,7 +21,7 @@ async function createRandomFile(name, sizeMB) {
|
||||
exports.createRandomFile = createRandomFile
|
||||
|
||||
async function checkFile(vhdName) {
|
||||
await execa('qemu-img', ['convert', '-f vpc', '-O qcow2', vhdName, 'outputFile.qcow2'])
|
||||
await execa('qemu-img', ['convert', '-fvpc', '-Oqcow2', vhdName, 'outputFile.qcow2'])
|
||||
}
|
||||
exports.checkFile = checkFile
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ test('VMDK to VHD can convert a random data file with VMDKDirectParser', async (
|
||||
)
|
||||
).pipe(createWriteStream(vhdFileName))
|
||||
await fromEvent(pipe, 'finish')
|
||||
await execa('qemu-img', ['convert', vhdFileName, 'outputFile.qcow2'])
|
||||
await execa('qemu-img', ['convert', '-fvpc', '-Oqcow2', vhdFileName, 'outputFile.qcow2'])
|
||||
await execa('qemu-img', ['convert', '-fvmdk', '-Oraw', vmdkFileName, reconvertedFromVmdk])
|
||||
await execa('qemu-img', ['convert', '-fvpc', '-Oraw', vhdFileName, reconvertedFromVhd])
|
||||
await execa('qemu-img', ['compare', inputRawFileName, vhdFileName])
|
||||
|
||||
Reference in New Issue
Block a user