Skip to content

Commit ef4cc2c

Browse files
committed
Explicitly specify raw disk format in tests.
1 parent 34ca9b7 commit ef4cc2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qemu-manager/src/test/java/org/anarres/qemu/manager/QEmuManagerTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.anarres.qemu.exec.QEmuCpusOption;
1515
import org.anarres.qemu.exec.QEmuTestUtils;
1616
import org.anarres.qemu.exec.recipe.QEmuVirtioDriveRecipe;
17+
import org.anarres.qemu.image.QEmuImageFormat;
1718
import org.anarres.qemu.qapi.api.BlockdevAddCommand;
1819
import org.anarres.qemu.qapi.api.BlockdevAioOptions;
1920
import org.anarres.qemu.qapi.api.BlockdevCacheOptions;
@@ -43,7 +44,8 @@ public void testManager() throws Exception {
4344
QEmuCommandLine commandLine = QEmuTestUtils.newCommandLine();
4445
commandLine.addOptions(
4546
new QEmuCpusOption(4).withSockets(2).withCores(2),
46-
new QEmuVirtioDriveRecipe(0, QEmuTestUtils.newTemporaryDisk(dir, "sda")));
47+
new QEmuVirtioDriveRecipe(0, QEmuTestUtils.newTemporaryDisk(dir, "sda"))
48+
.withFormat(QEmuImageFormat.raw));
4749
QEmuProcess process = QEmuTestUtils.newQEmuProcess(commandLine);
4850
try {
4951
QApiConnection connection = process.getConnection(10, TimeUnit.SECONDS);

0 commit comments

Comments
 (0)