]> git.ipfire.org Git - thirdparty/automake.git/commit
tests: add shell function support to `command_ok_'
authorRichard Hansen <rhansen@rhansen.org>
Mon, 24 Feb 2025 00:21:17 +0000 (19:21 -0500)
committerKarl Berry <karl@freefriends.org>
Mon, 24 Feb 2025 22:25:39 +0000 (14:25 -0800)
commitf988a1f7fb0762eba04447004fed015476501372
tree5b796c78dd3bbb1db8b5554c0583314c38c19e96
parent150f53d454a8487966b8e2f2ebe8c8aa7e27f165
tests: add shell function support to `command_ok_'

* t/ax/tap-functions.sh (command_ok_): Run the command without testing
the exit status with `||' in case the command is a shell function.
This avoids unintentionally disabling `set -e' inside the shell
function.
t/ax/tap-functions.sh