From 644ba2409e10cf82043411ca8406a692b126c2c4 Mon Sep 17 00:00:00 2001 From: Nir Azkiel Date: Mon, 1 Jan 2024 12:18:03 +0200 Subject: [PATCH] add check --- .../live/options/test-rgb-options-metadata-consistency.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unit-tests/live/options/test-rgb-options-metadata-consistency.py b/unit-tests/live/options/test-rgb-options-metadata-consistency.py index 1ca87bcf42..b763b0d99d 100644 --- a/unit-tests/live/options/test-rgb-options-metadata-consistency.py +++ b/unit-tests/live/options/test-rgb-options-metadata-consistency.py @@ -5,6 +5,7 @@ import pyrealsense2 as rs from rspy import test, log +import time def close_resources(sensor): if len(sensor.get_active_streams()) > 0: @@ -83,7 +84,7 @@ def check_option_and_metadata_values(option, metadata, value_to_set, frame): if option == rs.option.white_balance: log.d("iteration", iteration, "setting explicitly enable_auto_white_balance to OFF") color_sensor.set_option(rs.option.enable_auto_white_balance, 0) - log.d("enable_auto_white_balance new value we read back is:", color_sensor.get_option(rs.option.enable_auto_white_balance)) + test.check_equal(color_sensor.get_option(rs.option.enable_auto_white_balance) , 0.0) value_to_set = option_range.min elif iteration == (num_of_frames_to_wait + 1): value_to_set = option_range.max