Skip to content

Commit

Permalink
DAOS-14592 test: Fix dmg_system_reformat engine restart detection (#1…
Browse files Browse the repository at this point in the history
…3454)

When detecting if the engines have restarted in dmg_system_reformat, use
the time since the restart as opposed to the original start time.

Signed-off-by: Phil Henderson <[email protected]>
  • Loading branch information
phender authored Jan 5, 2024
1 parent abe3348 commit dd69955
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tests/ftest/control/dmg_system_reformat.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
(C) Copyright 2020-2023 Intel Corporation.
(C) Copyright 2020-2024 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
Expand All @@ -8,6 +8,7 @@
from apricot import TestWithServers
from avocado.core.exceptions import TestFail
from exception_utils import CommandFailure
from general_utils import journalctl_time
from test_utils_pool import add_pool, get_size_params


Expand Down Expand Up @@ -91,6 +92,7 @@ def test_dmg_system_reformat(self):

# Check that engine starts up again
self.log.info("<SERVER> Waiting for the engines to start")
self.server_managers[-1].manager.timestamps["start"] = journalctl_time()
self.server_managers[-1].detect_engine_start()

# Check that we have cleared storage by checking pool list
Expand Down

0 comments on commit dd69955

Please sign in to comment.