execute patch commands without an implicit shell
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 0 repliesNew
- v19 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- Accept both valid Git %aI representations of UTC, Z and +00:00, in the fallback metadata test
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | oe/patch: drop shell=True from runcmdmeta/ | +9 | 0 replies | |
| 2/9 | oeqa/oelib: add runcmd testsmeta/ | +45 | 0 replies | |
| 3/9 | oe/patch: convert simple runcmd shell callersmeta/ | +22 | 0 replies | |
| 4/9 | oe/patch: avoid shell pipeline in _applypatchmeta/ | +7 | 0 replies | |
| 5/9 | oe/patch: remove obsolete PATCHFILE assignmentmeta/ | +4 | 0 replies | |
| 6/9 | oeqa/oelib: test GitApplyTree patch namesmeta/ | +136 | 0 replies | |
| 7/9 | oe/patch: pass GitApplyTree commands as argv listsmeta/ scripts/ | +29 | 0 replies | |
| 8/9 | oe/patch: return manual-resolution commands as argv listsmeta/ | +5 | 0 replies | |
| 9/9 | oeqa/oelib: test patch command argv handlingmeta/ | +101 | 0 replies |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by.
| Patch | Daniel Turull |
|---|---|
| 1/9 | R-b |
| 2/9 | R-b |
| 3/9 | R-b |
| 4/9 | R-b |
| 5/9 | R-b |
| 6/9 | R-b |
| 7/9 | R-b |
| 8/9 | R-b |
| 9/9 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/9] execute patch commands without an implicit shell
Continue the shell=True cleanup in oe.patch.
Run runcmd() argument lists directly instead of joining them into an implicit shell command string.
This series converts the non test runcmd() callers that invoked it with -sh.
The series also replaces the cat-to-patch pipeline with patch -i, removes the obsolete PATCHFILE assignment, converts GitApplyTree commands to argv lists, and keeps manual-resolution commands as argv lists.
oelib tests cover argv handling and error reporting, GitApplyTree patch-name preservation, fallback commit metadata, and run=False command generation without repository side effects.
Changes in v2:
- Accept both valid Git %aI representations of UTC, Z and +00:00, in the fallback metadata test
Anders Heimer (9):
oe/patch: drop shell=True from runcmd oeqa/oelib: add runcmd tests
oe/patch: convert simple runcmd shell callers oe/patch: avoid shell pipeline in _applypatch oe/patch: remove obsolete PATCHFILE assignment oeqa/oelib: test GitApplyTree patch names oe/patch: pass GitApplyTree commands as argv lists oe/patch: return manual-resolution commands as argv lists oeqa/oelib: test patch command argv handling
meta/lib/oe/patch.py | 131 +++++---- meta/lib/oeqa/selftest/cases/oelib/patch.py | 282 ++++++++++++++++++++ scripts/lib/devtool/upgrade.py | 2 +- 3 files changed, 355 insertions(+), 60 deletions(-) create mode 100644 meta/lib/oeqa/selftest/cases/oelib/patch.py