Skip to content

Commit a55570b

Browse files
authored
Merge pull request #784 from NVIDIA/am/stable-tests
Make tests more stable on systems with slurm binaries
2 parents bd81345 + 8c31522 commit a55570b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/test_acceptance.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ def test_req(request, slurm_system: SlurmSystem, partial_tr: partial[TestRun]) -
525525
def test_sbatch_generation(slurm_system: SlurmSystem, test_req: tuple[TestRun, str]):
526526
slurm_system.output_path.mkdir(parents=True, exist_ok=True)
527527
slurm_system.container_mount_home = True
528+
slurm_system.supports_gpu_directives_cache = True
528529

529530
tr = test_req[0]
530531

tests/test_single_sbatch_runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
2-
# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -100,6 +100,7 @@ def test_sbatch_system_fields(sleep_tr: TestRun, slurm_system: SlurmSystem) -> N
100100

101101
runner.system.account = "test_account"
102102
runner.system.distribution = "test_distribution"
103+
runner.system.supports_gpu_directives_cache = True
103104
runner.system.gpus_per_node = 2
104105
runner.system.ntasks_per_node = 4
105106
runner.system.extra_sbatch_args = ["--test-arg1", "--test-arg2"]

0 commit comments

Comments
 (0)