Skip to content

Commit

Permalink
DAOS-14528 test: Fix PoolCreateCapacityTests for md-on-ssd
Browse files Browse the repository at this point in the history
Fix pylint and speel checks.

Skip-func-hw-medium-md-on-ssd: false
Skip-func-hw-medium-verbs-provider-md-on-ssd: false
Skip-func-hw-large-md-on-ssd: false
Features: control pool
Required-githooks: true
Signed-off-by: Cedric Koch-Hofer <[email protected]>
  • Loading branch information
kanard38 authored and Cedric Koch-Hofer committed Jan 22, 2024
1 parent 72578e8 commit 09a4ae8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tests/ftest/util/test_utils_pool.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
(C) Copyright 2018-2023 Intel Corporation.
(C) Copyright 2018-2024 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
Expand Down Expand Up @@ -127,7 +127,7 @@ def check_pool_creation(test, pools, max_duration, offset=1, durations=None, min
Returns:
list: list of created pools.
"""
DER_NOSPACE = "DER_NOSPACE(-1007)"
der_nospace_str = "DER_NOSPACE(-1007)"

if durations is None:
durations = []
Expand All @@ -137,14 +137,14 @@ def check_pool_creation(test, pools, max_duration, offset=1, durations=None, min
duration = time_pool_create(test.log, index + offset, pool)
if duration > max_duration:
test.log.debug(
"Creating pool %s tooks longer than expected: max=%i, got=%f",
"Creating pool %s took longer than expected: max=%i, got=%f",
pool, max_duration, duration)
exceeding_duration += 1
except TestFail as error:
if minimum is None:
raise error
if DER_NOSPACE not in str(error):
test.fail(f'"Unexpected error occurred: wait="{DER_NOSPACE}", got="{error}"')
if der_nospace_str not in str(error):
test.fail(f'"Unexpected error occurred: wait="{der_nospace_str}", got="{error}"')
if index < minimum:
test.fail(f'Minimum pool quantity ({index}/{minimum}) not reached: {error}')

Expand Down

0 comments on commit 09a4ae8

Please sign in to comment.