mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 20:03:53 +08:00
* 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: 3365ed5eff
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()
|