Logo
Explore Help
Register Sign In
sadmen
/
dragonpilot
mirror of https://github.com/dragonpilot-community/dragonpilot.git
1
0
Fork
You've already forked dragonpilot
0
Code Issues 6 Packages Projects Releases Wiki Activity
dragonpilot - 基於 openpilot 的開源駕駛輔助系統
12816 Commits
44 Branches
64 Tags
7.1 GiB
Tree: c52126cd6c
dragonpilot/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>
1 year 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: 52ms Template : 2ms
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