mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 11:02:19 +08:00
afea57ae2a
* add custom setproctitle * add test * Update poetry.lock * fix lint * support only Linux * test only Linux * final lint * Update test_setproctitle.py * Update setproctitle.py * convert to threadnames * delete proctitles * Check str len and use PR_GET_NAME * fix poetry.lock * lint fix * Update common/threadname.py --------- Co-authored-by: reddyn12 <nikhilr.ssm@gmail.com> Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> old-commit-hash: 3365ed5effa48d34ffe0e2e9bbe9f6941336bed5
9 lines
236 B
Python
9 lines
236 B
Python
from openpilot.common.threadname import setthreadname, getthreadname, LINUX
|
|
|
|
class TestThreadName:
|
|
def test_set_get_threadname(self):
|
|
if LINUX:
|
|
name = 'TESTING'
|
|
setthreadname(name)
|
|
assert name == getthreadname()
|