Skip to content

Commit

Permalink
fix ftest failures
Browse files Browse the repository at this point in the history
Test-tag: hw,medium,DmgPoolQueryTest hw,medium,ListVerboseTest
Allow-unstable-test: true
Signed-off-by: Tom Nabarro <[email protected]>
  • Loading branch information
tanabarr committed Jan 20, 2025
1 parent 0de7e10 commit c251d1c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions src/tests/ftest/control/dmg_pool_query_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
(C) Copyright 2020-2024 Intel Corporation.
(C) Copyright 2025 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
Expand Down Expand Up @@ -98,10 +99,8 @@ def test_pool_query_basic(self):
"size": self.params.get("total", path="/run/exp_vals/nvme/*")
}
],
"mem_file_bytes": (
self.params.get("total", path="/run/exp_vals/scm/*") if
self.server_managers[0].manager.job.using_control_metadata else
0)
"md_on_ssd_active": self.server_managers[0].manager.job.using_control_metadata,
"mem_file_bytes": self.params.get("total", path="/run/exp_vals/scm/*"),
}

self.assertDictEqual(
Expand Down
7 changes: 3 additions & 4 deletions src/tests/ftest/pool/list_verbose.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
(C) Copyright 2018-2024 Intel Corporation.
(C) Copyright 2025 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
Expand Down Expand Up @@ -110,10 +111,8 @@ def create_expected(self, pool, scm_free, nvme_free, scm_imbalance,
"imbalance": nvme_imbalance
},
],
"mem_file_bytes": (
scm_size if
self.server_managers[0].manager.job.using_control_metadata else
0)
"md_on_ssd_active": self.server_managers[0].manager.job.using_control_metadata,
"mem_file_bytes": scm_size,
}

@staticmethod
Expand Down
3 changes: 2 additions & 1 deletion src/tests/ftest/util/dmg_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
(C) Copyright 2018-2024 Intel Corporation.
(C) Copyright 2025 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
Expand Down Expand Up @@ -605,7 +606,7 @@ def pool_create(self, scm_size, uid=None, gid=None, nvme_size=None,
# 256000000,
# 0
# ],
# "mem_file_bytes": 0
# "mem_file_bytes": 256000000
# },
# "error": null,
# "status": 0
Expand Down

0 comments on commit c251d1c

Please sign in to comment.