Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include SKIPPED Result when showing results #872

Merged
merged 1 commit into from
Sep 15, 2023
Merged
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
28 changes: 14 additions & 14 deletions unskript-ctl/unskript-client.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
TBL_HDR_RBOOK_NAME="\033[36m Runbook Name \033[0m"
TBL_HDR_CHKS_COUNT="\033[32m Checks Count (Pass/Fail/Error) (Total checks run) / (Skipped checks) \033[0m"
TBL_CELL_CONTENT_PASS="\033[1m PASS \033[0m"
TBL_CELL_CONTENT_SKIPPED="\033[1m SKIPPED \033[0m"
TBL_CELL_CONTENT_FAIL="\033[1m FAIL \033[0m"
TBL_CELL_CONTENT_ERROR="\033[1m ERROR \033[0m"
TBL_HDR_DSPL_CHKS_NAME="\033[35m Failed Check Name / TS \033[0m"
Expand Down Expand Up @@ -253,21 +254,20 @@ def run_ipynb(filename: str, status_list_of_dict: list = None):

ids = get_code_cell_action_uuids(nb.dict())
result_table = [["Checks Name", "Result", "Failed Count", "Error"]]
if len(outputs) == 0:
if UNSKRIPT_GLOBALS.get('skipped'):
for check_name,connector in UNSKRIPT_GLOBALS.get('skipped'):
result_table.append([
check_name,
"SKIPPED",
"N/A",
"Credential Incomplete"
if UNSKRIPT_GLOBALS.get('skipped'):
for check_name,connector in UNSKRIPT_GLOBALS.get('skipped'):
result_table.append([
check_name,
TBL_CELL_CONTENT_SKIPPED,
"N/A",
"Credential Incomplete"
])
status_dict['result'].append([
check_name,
"",
connector,
'ERROR'
])
status_dict['result'].append([
check_name,
"",
connector,
'ERROR'
])
results = {}
if ids:
results = outputs[0]
Expand Down
Loading