Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions common/acs_test_framework_manifests/apply_waivers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,9 @@ suites:



- name: bsa_subtest_waiver_applies_by_sub_rule_id
- name: bsa_testcase_waiver_reason_applies_to_failed_subtests
type: cli
description: "A whole-test waiver supplies the reason for failed subtests; a child waiver must not replace it."
text_files:
bsa.json: |
{
Expand Down Expand Up @@ -631,7 +632,7 @@ suites:
"TestCases": [
{
"Test_case": "RULE_001",
"Reason": "Case waiver placeholder",
"Reason": "BSA whole-test waiver",
"SubTests": [
{
"sub_Rule_ID": "SUB_01",
Expand All @@ -651,15 +652,25 @@ suites:
- "{dir}/waiver.json"
expect_exit_code: 0
post_checks:
- type: file_contains
- type: file_not_contains
path: "{dir}/bsa.json"
text: "BSA subtest waiver"
- type: file_contains
# Check the parent and failed child separately, including both reasons.
- type: ordered_contains
path: "{dir}/bsa.json"
text: "WITH WAIVER"
- type: file_contains
texts:
- '"Test_case": "RULE_001"'
- '"Test_result": "FAILED (WITH WAIVER)"'
- '"sub_Rule_ID": "SUB_01"'
- '"sub_test_result": "FAILED (WITH WAIVER)"'
- '"waiver_reason": "BSA whole-test waiver"'
- '"sub_Rule_ID": "SUB_02"'
- '"sub_test_result": "PASSED"'
- '"waiver_reason": "BSA whole-test waiver"'
# A passing child must stay passed without gaining a waiver reason.
- type: regex
path: "{dir}/bsa.json"
text: "\"sub_Rule_ID\": \"SUB_02\""
pattern: '"sub_Rule_ID": "SUB_02",\s*"sub_Test_Description": "second subtest",\s*"sub_test_result": "PASSED"\s*\}'

- name: passed_result_is_not_modified_by_waiver
type: cli
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ suites:
type: main_guard
description: "Check that the script contains a standard __main__ guard."

- name: status_true_returns_passed
- name: result_status_true_returns_passed
type: py_function
function: status
function: result_status
args: [true]
expect_return: "PASSED"

- name: status_false_returns_warning
- name: result_status_false_returns_warning
type: py_function
function: status
function: result_status
args: [false]
expect_return: "WARNING"

Expand Down
2,361 changes: 2,361 additions & 0 deletions common/acs_test_framework_runner/test_doctor.py

Large diffs are not rendered by default.

2,280 changes: 2,280 additions & 0 deletions common/acs_test_framework_runner/test_doctor_report.py

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions common/log_parser/doctor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env python3
# Copyright (c) 2026, Arm Limited or its affiliates. All rights reserved.
# SPDX-License-Identifier : Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Keep the existing optional Doctor entry point while its code lives in one folder.

Normal parser commands only register Doctor's flags. Health checks run only
when explicitly requested; importing this launcher never starts them.
"""

import sys

from doctor_checks.core import Context, Finding, add_arguments, main, run_health

# These imports are the existing public entry points, not unused local helpers.
__all__ = ("Context", "Finding", "add_arguments", "main", "run_health", "sys")


if __name__ == "__main__":
sys.dont_write_bytecode = True
sys.exit(main())
20 changes: 20 additions & 0 deletions common/log_parser/doctor_checks/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env python3
# Copyright (c) 2026, Arm Limited or its affiliates. All rights reserved.
# SPDX-License-Identifier : Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Optional Doctor checks; importing this package does not start any checks."""

# License metadata only; importing this package never starts health checks.
__license__ = "Apache-2.0"
Loading
Loading