Skip to content

Commit 8495226

Browse files
authored
Hotfix for no cmd_output (#777)
1 parent 71f076d commit 8495226

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

tdvt/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.3.5] - 2021-04-30
8+
- Hotfix for when cmd_output does not exist.
9+
710
## [2.3.4] - 2021-04-12
811
- Clean up and simplify test metadata file
912
- Fix missing metadata file when running setup.py

tdvt/tdvt/tdvt_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def get_tuple_display_limit():
483483
return 100
484484

485485

486-
def get_csv_row_data(tds_name, test_name, test_path, test_result, test_case_index=0):
486+
def get_csv_row_data(tds_name, test_name, test_path, test_result: TestResult, test_case_index=0):
487487
# A few of the tests generate thousands of tuples. Limit how many to include in the csv since it makes it unweildly.
488488
passed = False
489489
skipped = False
@@ -509,7 +509,7 @@ def get_csv_row_data(tds_name, test_name, test_path, test_result, test_case_inde
509509
test_type = 'logical' if test_result.test_config.logical else 'expression'
510510

511511
# Truncate long process outputs to keep size of csv down
512-
if len(cmd_output) > 4096:
512+
if cmd_output and len(cmd_output) > 4096:
513513
cmd_output = cmd_output[:4096] + "<output_truncated>"
514514

515515
priority = test_result.test_metadata.get_priority() if test_result and test_result.test_metadata else 'unknown'

tdvt/tdvt/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.3.3'
1+
__version__ = '2.3.5'

0 commit comments

Comments
 (0)