From 72ff92381fa22890a52257af1307864349515997 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Fri, 9 Nov 2018 05:28:34 -0700 Subject: [PATCH] test/json_config: add passthru to clear_config.py This avoids "already claimed" error messages in the bdev json_config tests, by making sure the passthru bdevs get deleted before we create it again via the JSON config file. Signed-off-by: Jim Harris Change-Id: I2447c05692030b233ea791ec8a962eac4003c7d9 Reviewed-on: https://review.gerrithub.io/432600 Reviewed-by: Ben Walker Reviewed-by: Darek Stojaczyk Reviewed-by: Shuhei Matsumoto Reviewed-by: Paul Luse Chandler-Test-Pool: SPDK Automated Test System Tested-by: SPDK CI Jenkins --- test/json_config/clear_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/json_config/clear_config.py b/test/json_config/clear_config.py index e6d8dd71b..d0bbf2ce4 100755 --- a/test/json_config/clear_config.py +++ b/test/json_config/clear_config.py @@ -53,7 +53,8 @@ def get_bdev_destroy_method(bdev): 'construct_error_bdev': "delete_error_bdev", 'construct_split_vbdev': "destruct_split_vbdev", 'construct_virtio_dev': "remove_virtio_bdev", - 'construct_crypto_bdev': "delete_crypto_bdev" + 'construct_crypto_bdev': "delete_crypto_bdev", + 'construct_passthru_bdev': "delete_passthru_bdev", } destroy_method = None if 'method' in bdev: