-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: hil: scripts: package plugins in directories
We were previously packaging our HIL pytest plugins as collections of python scripts without any directory hierarchy. This meant that every python file in the package was placed in the root of the site_packages directory. If any other package did the same and had names that conflicted, the files would be overwritten. For example these two plugins both contain a file named plugin.py and both attempt to place that file at the root of the site packages directory. Normal practice in python is to create a directory for each package, and that's what's done in this commit. Signed-off-by: Sam Friedman <[email protected]>
- Loading branch information
1 parent
0e88037
commit 731965f
Showing
21 changed files
with
31 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
2 changes: 1 addition & 1 deletion
2
tests/hil/scripts/pytest-hil/bmpboard.py → ...scripts/pytest-hil/pytest_hil/bmpboard.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from board import Board | ||
from pytest_hil.board import Board | ||
import subprocess | ||
|
||
class BMPBoard(Board): | ||
|
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...cripts/pytest-hil/esp32_devkitc_wrover.py → ...st-hil/pytest_hil/esp32_devkitc_wrover.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/hil/scripts/pytest-hil/espboard.py → ...scripts/pytest-hil/pytest_hil/espboard.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/hil/scripts/pytest-hil/espidfboard.py → ...ipts/pytest-hil/pytest_hil/espidfboard.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/hil/scripts/pytest-hil/jlinkboard.py → ...ripts/pytest-hil/pytest_hil/jlinkboard.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
import trio | ||
|
||
from board import Board | ||
from pytest_hil.board import Board | ||
|
||
|
||
class LinuxBoard(Board): | ||
|
4 changes: 2 additions & 2 deletions
4
...s/hil/scripts/pytest-hil/mimxrt1024evk.py → ...ts/pytest-hil/pytest_hil/mimxrt1024evk.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/hil/scripts/pytest-hil/ncsboard.py → ...scripts/pytest-hil/pytest_hil/ncsboard.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/hil/scripts/pytest-hil/nordicboard.py → ...ipts/pytest-hil/pytest_hil/nordicboard.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/hil/scripts/pytest-hil/nrf52840dk.py → ...ripts/pytest-hil/pytest_hil/nrf52840dk.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/hil/scripts/pytest-hil/nrf9160dk.py → ...cripts/pytest-hil/pytest_hil/nrf9160dk.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
tests/hil/scripts/pytest-hil/plugin.py → ...l/scripts/pytest-hil/pytest_hil/plugin.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/hil/scripts/pytest-hil/rak5010.py → .../scripts/pytest-hil/pytest_hil/rak5010.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/hil/scripts/pytest-hil/zephyrboard.py → ...ipts/pytest-hil/pytest_hil/zephyrboard.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from board import Board | ||
from pytest_hil.board import Board | ||
|
||
class ZephyrBoard(Board): | ||
@property | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.