diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-07-08 07:40:20 +0200 |
|---|---|---|
| committer | Mark Wielaard <mark@klomp.org> | 2025-07-08 11:56:52 +0200 |
| commit | 40b9c550dd2f94a069f3bedf51ceb310d7487d88 (patch) | |
| tree | fdf953bd2152e0b4a0bad2a8f2902a5c554b6a6d | |
| parent | README: update release URL (diff) | |
tests/debugedit.at: Replace 'type -p' bashism
Replace 'type -p' with more portable 'command -v', in order to fix running the test suite on non-bash shells. Note that while the test itself invokes bash, the backticks are evaluated within the context of the shell used by autotest. Signed-off-by: Michał Górny <mgorny@gentoo.org>
| -rw-r--r-- | tests/find-debuginfo.at | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/find-debuginfo.at b/tests/find-debuginfo.at index 5552ce1..dd59374 100644 --- a/tests/find-debuginfo.at +++ b/tests/find-debuginfo.at | |||
| @@ -67,7 +67,7 @@ AT_CHECK([$READELF --debug-dump=line subdir_build/dupes.a | grep `pwd`], [0], [s | |||
| 67 | 67 | ||
| 68 | # run conversion, under bash -x tracing for fuller testing log | 68 | # run conversion, under bash -x tracing for fuller testing log |
| 69 | AT_CHECK([[env RPM_BUILD_DIR=${PWD} RPM_BUILD_ROOT=${PWD} RPM_PACKAGE_NAME=pkg RPM_PACKAGE_VERSION=ver RPM_PACKAGE_RELEASE=rel RPM_ARCH=arch \ | 69 | AT_CHECK([[env RPM_BUILD_DIR=${PWD} RPM_BUILD_ROOT=${PWD} RPM_PACKAGE_NAME=pkg RPM_PACKAGE_VERSION=ver RPM_PACKAGE_RELEASE=rel RPM_ARCH=arch \ |
| 70 | bash -x `type -p find-debuginfo` -S sourcefiles.list -v ${PWD}/subdir_build]], [0], [stdout], [ignore]) | 70 | bash -x `command -v find-debuginfo` -S sourcefiles.list -v ${PWD}/subdir_build]], [0], [stdout], [ignore]) |
| 71 | 71 | ||
| 72 | # list new .a contents; ar tPv contains timestamps / subdirs, so not a good fit for AT_DATA() here | 72 | # list new .a contents; ar tPv contains timestamps / subdirs, so not a good fit for AT_DATA() here |
| 73 | AT_CHECK([$AR tPv subdir_build/dupes.a],[0],[stdout],[ignore]) | 73 | AT_CHECK([$AR tPv subdir_build/dupes.a],[0],[stdout],[ignore]) |
