From 4870b2b881e23bd17ade4b6c16eaff767f9b5286 Mon Sep 17 00:00:00 2001 From: vedithal-amd Date: Fri, 3 Oct 2025 12:52:38 -0400 Subject: [PATCH] Fix tests (#1213) --- .../rocprofiler-compute/tests/test_profile_general.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/rocprofiler-compute/tests/test_profile_general.py b/projects/rocprofiler-compute/tests/test_profile_general.py index 2b50bf97bf..bc4794ff62 100644 --- a/projects/rocprofiler-compute/tests/test_profile_general.py +++ b/projects/rocprofiler-compute/tests/test_profile_general.py @@ -1619,8 +1619,8 @@ def test_list_metrics(binary_handler_profile_rocprof_compute): _ = binary_handler_profile_rocprof_compute( config, workload_dir, options, check_success=True, roof=False ) - # workload dir should be empty - assert not os.listdir(workload_dir) + # workload dir should not exist + assert not Path(workload_dir).exists() test_utils.clean_output_dir(config["cleanup"], workload_dir) @@ -1633,8 +1633,8 @@ def test_list_metrics_with_block(binary_handler_profile_rocprof_compute): ) # Should return code 1 since --block cannot be used with --list-metrics assert code == 1 - # workload dir should be empty - assert not os.listdir(workload_dir) + # workload dir should not exist + assert not Path(workload_dir).exists() test_utils.clean_output_dir(config["cleanup"], workload_dir)