qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 01/67] iotests.py: Read $IMGOPTS


From: Max Reitz
Subject: [PATCH 01/67] iotests.py: Read $IMGOPTS
Date: Tue, 1 Oct 2019 21:46:09 +0200

We do not do anything with yet, but this is the first step.

Signed-off-by: Max Reitz <address@hidden>
---
 tests/qemu-iotests/iotests.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 1c5fce3e9e..7030900807 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -69,6 +69,12 @@ output_dir = os.environ.get('OUTPUT_DIR', '.')
 cachemode = os.environ.get('CACHEMODE')
 qemu_default_machine = os.environ.get('QEMU_DEFAULT_MACHINE')
 
+imgopts = os.environ.get('IMGOPTS', '')
+if len(imgopts) == 0:
+    imgopts = []
+else:
+    imgopts = imgopts.split(',')
+
 socket_scm_helper = os.environ.get('SOCKET_SCM_HELPER', 'socket_scm_helper')
 
 luks_default_secret_object = 'secret,id=keysec0,data=' + \
-- 
2.21.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]