Fix test failures (#1059)

* Test fix

* Added path not exists check
This commit is contained in:
abchoudh-amd
2025-09-22 18:07:13 +05:30
کامیت شده توسط GitHub
والد 63a723a287
کامیت a927f246f6
2فایلهای تغییر یافته به همراه9 افزوده شده و 6 حذف شده
@@ -107,4 +107,7 @@ markers = [
"sets_func",
"sets_perf",
"pc_sampling",
"roofline",
"path",
"sci_notion",
]
@@ -1737,8 +1737,8 @@ def test_list_available_metrics(binary_handler_profile_rocprof_compute, capsys):
_ = 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)
# Test output
@@ -1758,8 +1758,8 @@ def test_list_available_metrics_with_block(
)
# Should return code 1 since --block cannot be used with --list-available-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)
@@ -1984,6 +1984,6 @@ class TestSetsIntegration:
check_success=False,
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)