Logo
Explore Help
Register Sign In
mawei/dragonpilot
1
0
Fork 0
You've already forked dragonpilot
mirror of https://github.com/dragonpilot/dragonpilot.git synced 2026-02-20 21:53:59 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
e798caa3e5c44ed5aa7e480101a052d59612ad95
dragonpilot/common/tests/test_threadname.py

9 lines
236 B
Python
Raw Normal View History

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>
2024-06-11 21:57:32 -07:00
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()
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 27ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API