Commit 2f65dec
committed
Update test utils to use .proto submodule with fallback to sibling directory
Changes to examples/serdes/tests/utils.py:
- Updated get_wamp_proto_path() to check for .proto submodule first
- Falls back to sibling directory ../wamp-proto for local development
- Provides clear error messages with both paths tried
- Ensures flexibility for both CI (submodule) and local dev (sibling)
Path resolution order:
1. .proto/ submodule (preferred for CI/CD)
2. ../wamp-proto sibling (local development)
This allows:
- CI to use git submodule (works in GitHub Actions)
- Developers to use either submodule or sibling directory
- Clear error messages if neither location exists
Related: #1764, wamp-proto#5561 parent e0e03a9 commit 2f65dec
1 file changed
+28
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | | - | |
| 24 | + | |
20 | 25 | | |
21 | | - | |
22 | 26 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
28 | 46 | | |
29 | 47 | | |
30 | 48 | | |
| |||
0 commit comments