Skip to content

Commit

Permalink
tests: Update shutter test to use 2x gain
Browse files Browse the repository at this point in the history
The check_jpeg_shutter test would fail on the imx708 as the minimum
gain is 1.12.  Update the test to use a gain of 2x to get around this.

Signed-off-by: Naushir Patuck <[email protected]>
  • Loading branch information
naushir committed Jun 28, 2023
1 parent e4b2a50 commit c19a632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,11 @@ def test_jpeg(exe_dir, output_dir):
print(" shutter test")
retcode, time_taken = run_executable(
[executable, '-t', '1000', '-o', output_shutter,
'--shutter', '20000', '--gain', '1.0', '--awbgains', '1.0,1.0'], logfile)
'--shutter', '20000', '--gain', '2.0', '--awbgains', '1.0,1.0'], logfile)
check_retcode(retcode, "test_jpeg: shutter test")
check_time(time_taken, 1.2, 8, "test_jpeg: shutter test")
check_size(output_shutter, 1024, "test_jpeg: shutter test")
check_jpeg_shutter(output_shutter, '1/50', '100', "test_jpeg: shutter test")
check_jpeg_shutter(output_shutter, '1/50', '200', "test_jpeg: shutter test")

print("libcamera-jpeg tests passed")

Expand Down

0 comments on commit c19a632

Please sign in to comment.