Commit 8993ee5
committed
tests: partitioning: Verify run action postprocess cwd
Extend the partitioning test to enforce the expected working directory
behaviour for postprocess actions. When a recipe is executed with an
explicit --artifactdir, postprocess run actions should execute with:
* cwd == $ARTIFACTDIR
* $ARTIFACTDIR != $RECIPEDIR
The test now checks all three conditions:
* test.img exists in the current directory,
* the working directory is $ARTIFACTDIR,
* that $ARTIFACTDIR is different from $RECIPEDIR.
This ensures correct isolation between recipe sources and build
artifacts and catches regressions where postprocess commands
incorrectly inherit the recipe directory as their working directory.
Signed-off-by: Christopher Obbard <[email protected]>1 parent 8d90b84 commit 8993ee5
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
0 commit comments