test summary make cleaner
This commit is contained in:
1 parent
6866f5e4d3
commit
ca177ede6c
1 file changed
+3
-3
+3
-3
@@ -332,9 +332,9 @@ if __name__ == "__main__":
|
|||||||
reset_adapter()
|
reset_adapter()
|
||||||
test_results.append(this_test_result)
|
test_results.append(this_test_result)
|
||||||
|
|
||||||
log.info("Test run completed")
|
log.info("Test run completed! Summary:")
|
||||||
for test_result in test_results:
|
for test_result in test_results:
|
||||||
log.info(test_result['test_label'])
|
log.info(f"{test_result['test_label']}:")
|
||||||
parts: List[str] = []
|
parts: List[str] = []
|
||||||
for reading in test_result['test_result']['sensor_results']:
|
for reading in test_result['test_result']['sensor_results']:
|
||||||
mac = reading['name']
|
mac = reading['name']
|
||||||
@@ -344,7 +344,7 @@ if __name__ == "__main__":
|
|||||||
short_mac = ":".join(octets)
|
short_mac = ":".join(octets)
|
||||||
parts.append(f"{short_mac} - {temp:.1f}")
|
parts.append(f"{short_mac} - {temp:.1f}")
|
||||||
result_summary = " | ".join(parts)
|
result_summary = " | ".join(parts)
|
||||||
log.info(result_summary)
|
log.info(f" {result_summary}")
|
||||||
|
|
||||||
# This is the structure of test_results
|
# This is the structure of test_results
|
||||||
# [
|
# [
|
||||||
|
|||||||
Reference in new issue
Block a user