'main' tests: Don't assume ps(1) is available.
Some checks failed
Tests / test (4.3.11) (push) Has been cancelled
Tests / test (4.3.12) (push) Has been cancelled
Tests / test (4.3.13) (push) Has been cancelled
Tests / test (4.3.14) (push) Has been cancelled
Tests / test (4.3.15) (push) Has been cancelled
Tests / test (4.3.16) (push) Has been cancelled
Tests / test (4.3.17) (push) Has been cancelled
Tests / test (5.0.0) (push) Has been cancelled
Tests / test (5.0.1) (push) Has been cancelled
Tests / test (5.0.2) (push) Has been cancelled
Tests / test (5.0.3) (push) Has been cancelled
Tests / test (5.0.4) (push) Has been cancelled
Tests / test (5.0.5) (push) Has been cancelled
Tests / test (5.0.6) (push) Has been cancelled
Tests / test (5.0.7) (push) Has been cancelled
Tests / test (5.0.8) (push) Has been cancelled
Tests / test (5.1) (push) Has been cancelled
Tests / test (5.1.1) (push) Has been cancelled
Tests / test (5.2) (push) Has been cancelled
Tests / test (5.3) (push) Has been cancelled
Tests / test (5.3.1) (push) Has been cancelled
Tests / test (5.4) (push) Has been cancelled
Tests / test (5.4.1) (push) Has been cancelled
Tests / test (5.4.2) (push) Has been cancelled
Tests / test (5.5) (push) Has been cancelled
Tests / test (5.5.1) (push) Has been cancelled
Tests / test (5.6) (push) Has been cancelled
Tests / test (5.6.1) (push) Has been cancelled
Tests / test (5.6.2) (push) Has been cancelled
Tests / test (5.7) (push) Has been cancelled
Tests / test (5.7.1) (push) Has been cancelled
Tests / test (5.8) (push) Has been cancelled
Tests / test (5.8.1) (push) Has been cancelled
Tests / test (5.9) (push) Has been cancelled
Tests / test (master) (push) Has been cancelled
Tests / notify (push) Has been cancelled

It's actually unavailable in the minimal chroots Debian builds our
package on.  That's allowed by POSIX, which specifies ps(1) to be
optional, whereas id(1) —

- is not optional in POSIX
- should exist on every system anyone might run the testsuite on
- has the same length name, so test expectations don't have to be updated
- doesn't take a filename argument (ditto)

That does make the pipeline as a whole somewhat nonsensical
semantically, but it remains just as valid syntactically.
This commit is contained in:
Daniel Shahaf 2024-11-21 14:56:08 +00:00
parent e0165eaa73
commit 5eb677bb0f
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
BUFFER='ps aux | grep java | sort | uniq | tail | head'
BUFFER='id bob | grep java | sort | uniq | tail | head'
expected_region_highlight=(
"1 2 command" # ps

View File

@ -27,7 +27,7 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
BUFFER='ps aux | grep java'
BUFFER='id bob | grep java'
expected_region_highlight=(
"1 2 command" # ps