Commit 46c7b2d
Roy Lin
test(box): set uid/gid in synthetic layer tarballs (root extraction)
The oci::layers/oci::rootfs test helpers built GNU tar headers without uid/gid,
leaving those octal fields blank. A root-side extraction (which preserves
ownership, euid==0) then failed to parse the uid ("numeric field was not a
number"), so 9 tests failed on a root host (e.g. the KVM release runner) while
passing as non-root. Real OCI layers — and the production build-layer code —
always set uid/gid, so this was purely a malformed test fixture. Set uid/gid=0
in both helpers.1 parent 0995553 commit 46c7b2d
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
329 | 335 | | |
330 | 336 | | |
331 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
496 | 500 | | |
497 | 501 | | |
498 | 502 | | |
| |||
0 commit comments