more tici tests in jenkins (#19908)

* run loggerd tests on tici

* boardd loopback

* fix up seg length

* this doesn't add more coverage
pull/19916/head
Adeeb Shihadeh 2021-01-24 17:54:03 -08:00 committed by GitHub
parent 1e9e7264fa
commit 810ed30cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

8
Jenkinsfile vendored
View File

@ -148,9 +148,9 @@ pipeline {
["build", "SCONS_CACHE=1 scons -j4"],
["test sounds", "nosetests -s selfdrive/test/test_sounds.py"],
["test boardd loopback", "nosetests -s selfdrive/boardd/tests/test_boardd_loopback.py"],
["test loggerd", "CI=1 python selfdrive/loggerd/tests/test_loggerd.py"],
["test encoder", "CI=1 python selfdrive/loggerd/tests/test_encoder.py"],
//["test camerad", "CI=1 SEND_REAR=1 SEND_FRONT=1 python selfdrive/camerad/test/test_camerad.py"], // wait for shelf refactor
["test loggerd", "python selfdrive/loggerd/tests/test_loggerd.py"],
["test encoder", "python selfdrive/loggerd/tests/test_encoder.py"],
//["test camerad", "SEND_REAR=1 SEND_FRONT=1 python selfdrive/camerad/test/test_camerad.py"], // wait for shelf refactor
//["test updater", "python installer/updater/test_updater.py"],
])
}
@ -160,6 +160,8 @@ pipeline {
steps {
phone_steps("tici", [
["build", "SCONS_CACHE=1 scons -j16"],
["test loggerd", "python selfdrive/loggerd/tests/test_loggerd.py"],
["test encoder", "python selfdrive/loggerd/tests/test_encoder.py"],
])
}
}

View File

@ -66,9 +66,7 @@ class TestEncoder(unittest.TestCase):
def test_log_rotation(self, record_front):
Params().put("RecordFront", str(int(record_front)))
num_segments = random.randint(80, 150)
if "CI" in os.environ:
num_segments = random.randint(15, 20) # ffprobe is slow on comma two
num_segments = int(os.getenv("SEGMENTS", random.randint(10, 15)))
# wait for loggerd to make the dir for first segment
route_prefix_path = None