Logo
Explore Help
Register Sign In
sadmen
/
openpilot_comma
mirror of https://github.com/commaai/openpilot.git
1
0
Fork
You've already forked openpilot_comma
0
Code Issues Packages Projects Releases Wiki Activity
openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
13357 Commits
38 Branches
82 Tags
6.2 GiB
Tree: a1a0e9e8a0
openpilot_comma/common/tests/test_threadname.py

9 lines
236 B
Raw Normal View History Unescape Escape

Remove `setproctitle` (#32716) * Custom setproctitle (#32667) * 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> * revert that for now * use last 15 * fix * use name * update those * and modeld * rm --------- Co-authored-by: schlimeszn <138847413+schlimeszn@users.noreply.github.com> Co-authored-by: reddyn12 <nikhilr.ssm@gmail.com> Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: 83ac80c6c899dbf4b5b2d422947b02b57d83bccd
11 months ago
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()
Powered by Gitea Version: 1.17.1 Page: 66ms Template : 3ms
English
Bahasa Indonesia Deutsch English Español Français Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Српски Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Website