Switch fake-sys submodule from rhempel to ddemidov#397
Switch fake-sys submodule from rhempel to ddemidov#397dwalton76 merged 7 commits intoev3dev:developfrom dwalton76:fake-sys-update
Conversation
|
Odd that it doesn't have |
|
|
I thought that when I changed the submodule url it would automatically pull in the latest changes but it doesn't. We were behind 5 commits but have those now...fingers crossed. |
|
You need to fix this line. |
|
to what? |
|
See here for an example. For context: https://github.com/rhempel/ev3dev-lang-python/blob/5e33dff26159c9588940cb093b43f36b1b53afd8/tests/api_tests.py#L16 |
…thon into fake-sys-update
|
Before we get to that, something here doesn't add up How is the remote for fake-sys still rhempel? I deleted this directory and re-cloned just to be sure. |
|
But if I look here the fake-sys url does point to ddemidov's repo like we want |
|
Better now...no idea what I did the first time around to get it in that state...I must not have removed and re-cloned like I thought |
|
wohoo all checks have passed!! |
| @@ -48,6 +48,9 @@ def get_current_platform(): | |||
| """ | |||
| board_info_dir = '/sys/class/board-info/' | |||
There was a problem hiding this comment.
We should just use the existing "constant" on the Device class along with the path concatenation method, like we do for sensors/motors/etc. That would eliminate the need for special-casing it. With the code you have now, there'd have been no reason to update the submodule in the first place 😆
There was a problem hiding this comment.
I found that what got added in the submodule didn't work (there needs to be a board-info directory with specific structure, but board-info in the submodule is just a text file) and just wanted to get the CI tests passing for now.
There was a problem hiding this comment.
I don't have the EV3 around to test this myself; do I understand correctly there needs to be a board-info/fake-board/uevent file? And that should contain fake?
There was a problem hiding this comment.
yep, this is what it looks like on an ev3
robot@ev3[~]# tree /sys/class/board-info/
/sys/class/board-info/
└── board0 -> ../../devices/platform/board/board-info/board0
1 directory, 0 files
robot@ev3[~]# cat /sys/class/board-info/board0/uevent
BOARD_INFO_HW_REV=7
BOARD_INFO_MODEL=LEGO MINDSTORMS EV3
BOARD_INFO_ROM_REV=6
BOARD_INFO_SERIAL_NUM=00165346201F
BOARD_INFO_TYPE=main
robot@ev3[~]#
It needs to contain BOARD_INFO_MODEL=FAKE-SYS
There was a problem hiding this comment.
No description provided.