|
|
@ -3,7 +3,7 @@ import time |
|
|
|
import unittest |
|
|
|
import unittest |
|
|
|
import numpy as np |
|
|
|
import numpy as np |
|
|
|
|
|
|
|
|
|
|
|
from selfdrive.test.helpers import with_processes |
|
|
|
from selfdrive.test.helpers import with_processes, phone_only |
|
|
|
from system.camerad.snapshot.snapshot import get_snapshots |
|
|
|
from system.camerad.snapshot.snapshot import get_snapshots |
|
|
|
|
|
|
|
|
|
|
|
TEST_TIME = 45 |
|
|
|
TEST_TIME = 45 |
|
|
@ -28,6 +28,7 @@ class TestCamerad(unittest.TestCase): |
|
|
|
print([i_median, i_mean]) |
|
|
|
print([i_median, i_mean]) |
|
|
|
return med_ex[0] < i_median < med_ex[1] and mean_ex[0] < i_mean < mean_ex[1] |
|
|
|
return med_ex[0] < i_median < med_ex[1] and mean_ex[0] < i_mean < mean_ex[1] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@phone_only |
|
|
|
@with_processes(['camerad']) |
|
|
|
@with_processes(['camerad']) |
|
|
|
def test_camera_operation(self): |
|
|
|
def test_camera_operation(self): |
|
|
|
passed = 0 |
|
|
|
passed = 0 |
|
|
|