'main' tests: Don't assume ps(1) is available.

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