mirror of
https://github.com/qemu/qemu.git
synced 2025-08-14 20:31:47 +00:00
tests/qemu-iotests/149: Use more inclusive language in this test
Let's use 'unsupported_configs' and 'tested_configs' here instead of non-inclusive words. Message-ID: <20231122084000.809696-1-thuth@redhat.com> Reviewed-by: "Daniel P. Berrangé" <berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
29b5d70cb7
commit
5689d4bda6
@ -518,7 +518,7 @@ configs = [
|
|||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
blacklist = [
|
unsupported_configs = [
|
||||||
# We don't have a cast-6 cipher impl for QEMU yet
|
# We don't have a cast-6 cipher impl for QEMU yet
|
||||||
"cast6-256-xts-plain64-sha1",
|
"cast6-256-xts-plain64-sha1",
|
||||||
"cast6-128-xts-plain64-sha1",
|
"cast6-128-xts-plain64-sha1",
|
||||||
@ -528,17 +528,19 @@ blacklist = [
|
|||||||
"twofish-192-xts-plain64-sha1",
|
"twofish-192-xts-plain64-sha1",
|
||||||
]
|
]
|
||||||
|
|
||||||
whitelist = []
|
# Optionally test only the configurations in the LUKS_CONFIG
|
||||||
|
# environment variable
|
||||||
|
tested_configs = None
|
||||||
if "LUKS_CONFIG" in os.environ:
|
if "LUKS_CONFIG" in os.environ:
|
||||||
whitelist = os.environ["LUKS_CONFIG"].split(",")
|
tested_configs = os.environ["LUKS_CONFIG"].split(",")
|
||||||
|
|
||||||
for config in configs:
|
for config in configs:
|
||||||
if config.name in blacklist:
|
if config.name in unsupported_configs:
|
||||||
iotests.log("Skipping %s in blacklist" % config.name)
|
iotests.log("Skipping %s (config not supported)" % config.name)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if len(whitelist) > 0 and config.name not in whitelist:
|
if tested_configs is not None and config.name not in tested_configs:
|
||||||
iotests.log("Skipping %s not in whitelist" % config.name)
|
iotests.log("Skipping %s (by user request)" % config.name)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
test_once(config, qemu_img=False)
|
test_once(config, qemu_img=False)
|
||||||
|
@ -470,7 +470,7 @@ sudo cryptsetup -q -v luksClose qiotest-145-cast5-128-cbc-plain64-sha1
|
|||||||
# Delete image
|
# Delete image
|
||||||
unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
unlink TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img
|
||||||
|
|
||||||
Skipping cast6-256-xts-plain64-sha1 in blacklist
|
Skipping cast6-256-xts-plain64-sha1 (config not supported)
|
||||||
# ================= dm-crypt aes-256-cbc-plain-sha1 =================
|
# ================= dm-crypt aes-256-cbc-plain-sha1 =================
|
||||||
# Create image
|
# Create image
|
||||||
truncate TEST_DIR/luks-aes-256-cbc-plain-sha1.img --size 4194304MB
|
truncate TEST_DIR/luks-aes-256-cbc-plain-sha1.img --size 4194304MB
|
||||||
@ -1297,7 +1297,7 @@ sudo cryptsetup -q -v luksClose qiotest-145-twofish-128-xts-plain64-sha1
|
|||||||
# Delete image
|
# Delete image
|
||||||
unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
unlink TEST_DIR/luks-twofish-128-xts-plain64-sha1.img
|
||||||
|
|
||||||
Skipping twofish-192-xts-plain64-sha1 in blacklist
|
Skipping twofish-192-xts-plain64-sha1 (config not supported)
|
||||||
# ================= dm-crypt serpent-128-xts-plain64-sha1 =================
|
# ================= dm-crypt serpent-128-xts-plain64-sha1 =================
|
||||||
# Create image
|
# Create image
|
||||||
truncate TEST_DIR/luks-serpent-128-xts-plain64-sha1.img --size 4194304MB
|
truncate TEST_DIR/luks-serpent-128-xts-plain64-sha1.img --size 4194304MB
|
||||||
@ -1534,8 +1534,8 @@ sudo cryptsetup -q -v luksClose qiotest-145-serpent-192-xts-plain64-sha1
|
|||||||
# Delete image
|
# Delete image
|
||||||
unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
unlink TEST_DIR/luks-serpent-192-xts-plain64-sha1.img
|
||||||
|
|
||||||
Skipping cast6-128-xts-plain64-sha1 in blacklist
|
Skipping cast6-128-xts-plain64-sha1 (config not supported)
|
||||||
Skipping cast6-192-xts-plain64-sha1 in blacklist
|
Skipping cast6-192-xts-plain64-sha1 (config not supported)
|
||||||
# ================= dm-crypt aes-256-xts-plain64-sha224 =================
|
# ================= dm-crypt aes-256-xts-plain64-sha224 =================
|
||||||
# Create image
|
# Create image
|
||||||
truncate TEST_DIR/luks-aes-256-xts-plain64-sha224.img --size 4194304MB
|
truncate TEST_DIR/luks-aes-256-xts-plain64-sha224.img --size 4194304MB
|
||||||
|
Loading…
Reference in New Issue
Block a user