Commit 9ff07bc
committed
fix(test): make restart-path tests independent of the CI runner
GitHub Actions runs jobs under systemd, so INVOCATION_ID is set on the
runner and update.IsSystemd() reports true there but false on a
developer machine. The systemd branch then short-circuited before the
launchd and container branches, failing six restart-path tests in CI
while passing locally.
Clear INVOCATION_ID in both TestMains so branch selection is
deterministic; the systemd tests opt back in explicitly.1 parent 49f1d55 commit 9ff07bc
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
0 commit comments