From 245c4949f2b90347c8e4516a09bee1bcf1b539aa Mon Sep 17 00:00:00 2001 From: Remi Bettan Date: Thu, 16 May 2024 17:00:24 +0300 Subject: [PATCH 1/3] sleep added between pipe stop and restart --- unit-tests/live/d400/test-hdr-long.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/unit-tests/live/d400/test-hdr-long.py b/unit-tests/live/d400/test-hdr-long.py index fa8a9424f3..e4e208a868 100644 --- a/unit-tests/live/d400/test-hdr-long.py +++ b/unit-tests/live/d400/test-hdr-long.py @@ -6,7 +6,7 @@ ###################################### # test:device D400* -# test:donotrun:!nightly + import pyrealsense2 as rs from rspy import test, log @@ -354,6 +354,9 @@ def check_sequence_id(pipe): pipe.stop() + # timer added to permit restoring of the pipe, needed especially for jetson + time.sleep(0.2) + if test.check(at_least_one_frame_supported_seq_id): test.check(first_series_last_merged_ts != -1) test.check(depth_sensor.get_option(rs.option.hdr_enabled) == 1) From 57fd110059fe8a85f2bd34713ec571a361f09c13 Mon Sep 17 00:00:00 2001 From: Remi Bettan Date: Thu, 16 May 2024 17:04:20 +0300 Subject: [PATCH 2/3] restore the run_only_over_nightly for hdr long test --- unit-tests/live/d400/test-hdr-long.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unit-tests/live/d400/test-hdr-long.py b/unit-tests/live/d400/test-hdr-long.py index e4e208a868..847674ed8a 100644 --- a/unit-tests/live/d400/test-hdr-long.py +++ b/unit-tests/live/d400/test-hdr-long.py @@ -6,6 +6,7 @@ ###################################### # test:device D400* +# test:donotrun:!nightly import pyrealsense2 as rs From 78aabd56f599c36c45d689b39f2d5599bda2aa9d Mon Sep 17 00:00:00 2001 From: Remi Bettan Date: Thu, 16 May 2024 23:50:25 +0300 Subject: [PATCH 3/3] sleep increased to 1 sec --- unit-tests/live/d400/test-hdr-long.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/unit-tests/live/d400/test-hdr-long.py b/unit-tests/live/d400/test-hdr-long.py index 847674ed8a..bac6382b98 100644 --- a/unit-tests/live/d400/test-hdr-long.py +++ b/unit-tests/live/d400/test-hdr-long.py @@ -6,7 +6,6 @@ ###################################### # test:device D400* -# test:donotrun:!nightly import pyrealsense2 as rs @@ -356,7 +355,7 @@ def check_sequence_id(pipe): pipe.stop() # timer added to permit restoring of the pipe, needed especially for jetson - time.sleep(0.2) + time.sleep(1) if test.check(at_least_one_frame_supported_seq_id): test.check(first_series_last_merged_ts != -1)