Commit d84247d
committed
(kbuild.jinja2) Get return code properly
In Python, os.system() returns the exit status in a platform-specific format. On Unix-like systems, it returns the exit status shifted left by 8 bits.
Here's what's happening:
- My shell script exits with code 1 (build failure)
- os.system() returns 256 (1 << 8)
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>1 parent 82eeb2b commit d84247d
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | | - | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | | - | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
0 commit comments