Skip to content

Commit 89a7a8a

Browse files
committed
add test results to CSV output
1 parent 35e3745 commit 89a7a8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hardware-testing/hardware_testing/production_qc/robot_assembly_qc_ot3/test_peripherals.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,11 @@ def _get_user_confirmation(question: str) -> bool:
249249
try:
250250
# Assert there is no camera device at /dev/video2, the traditional device where the embedded camera appears
251251
assert not os.path.exists("/dev/video2")
252+
removed_result = CSVResult.PASS
252253
except Exception as e:
253254
print(f"Confirming camera not attached failed with the following error: {e}")
255+
removed_result = CSVResult.FAIL
256+
report(section, "camera-image", [removed_result])
254257
else:
255258
try:
256259
cam_pic_path = await _take_picture(api, report, section)

0 commit comments

Comments
 (0)