diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2025-02-04 22:14:07 +0100 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2025-02-06 14:47:51 +0100 |
| commit | bbf105ef3cc48fff282789e9bf56b7a81e1407bd (patch) | |
| tree | 53ccadf84587b28e95a1c6836dc18aa9137fcd8e /tests/qemu-iotests/iotests.py | |
| parent | 3ea437ab3d561ca79b95a34c5128e370de4738e3 (diff) | |
| download | focaccia-qemu-bbf105ef3cc48fff282789e9bf56b7a81e1407bd.tar.gz focaccia-qemu-bbf105ef3cc48fff282789e9bf56b7a81e1407bd.zip | |
iotests: Add (NBD-based) tests for inactive nodes
This tests different types of operations on inactive block nodes (including graph changes, block jobs and NBD exports) to make sure that users manually activating and inactivating nodes doesn't break things. Support for inactive nodes in other export types will have to come with separate test cases because they have different dependencies like blkio or root permissions and we don't want to disable this basic test when they are not fulfilled. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Acked-by: Fabiano Rosas <farosas@suse.de> Message-ID: <20250204211407.381505-17-kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/iotests.py')
| -rw-r--r-- | tests/qemu-iotests/iotests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 9c9c908983..7292c8b342 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -913,6 +913,10 @@ class VM(qtest.QEMUQtestMachine): self._args.append(addr) return self + def add_paused(self): + self._args.append('-S') + return self + def hmp(self, command_line: str, use_log: bool = False) -> QMPMessage: cmd = 'human-monitor-command' kwargs: Dict[str, Any] = {'command-line': command_line} |