mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-08 13:33:42 +08:00
build command to include 'galaxy' in the target list
This commit is contained in:
@@ -68,9 +68,9 @@ class TestDeveloperRuntime(unittest.TestCase):
|
||||
self.runtime.sync()
|
||||
self.assertEqual(native.read_bytes(), b'host binary')
|
||||
|
||||
def test_ui_build_prepares_mpc_import_dependency(self):
|
||||
def test_command_build_prepares_mpc_import_dependency(self):
|
||||
solver = 'openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code/acados_ocp_solver_pyx.so'
|
||||
for command in ('c3', 'c4', 'onroad'):
|
||||
for command in ('c3', 'c4', 'onroad', 'galaxy', 'python', 'pytest', 'shell'):
|
||||
with self.subTest(command=command), patch('tools.host_runtime.run') as build:
|
||||
self.runtime.build(command, 4)
|
||||
self.assertIn(solver, build.call_args.args[0])
|
||||
|
||||
@@ -240,7 +240,7 @@ class HostRuntime:
|
||||
def build(self, command, jobs):
|
||||
params = 'openpilot/common/libparams_c' + ('.dylib' if self.system == 'Darwin' else '.so')
|
||||
targets = [params, 'msgq_repo/msgq/ipc_pyx.so', 'msgq_repo/msgq/visionipc/visionipc_pyx.so']
|
||||
if command in ('c3', 'c4', 'onroad', 'python', 'pytest', 'shell'):
|
||||
if command in ('c3', 'c4', 'onroad', 'galaxy', 'python', 'pytest', 'shell'):
|
||||
targets += ['rednose_repo/rednose/helpers/ekf_sym_pyx.so', 'openpilot/selfdrive/locationd',
|
||||
'openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code/acados_ocp_solver_pyx.so']
|
||||
if command in ('onroad', 'replay', 'cabana'):
|
||||
|
||||
Reference in New Issue
Block a user