summaryrefslogtreecommitdiffstats
diff options
authorMichał Górny <mgorny@gentoo.org>2025-07-08 07:40:20 +0200
committerMark Wielaard <mark@klomp.org>2025-07-08 11:56:52 +0200
commit40b9c550dd2f94a069f3bedf51ceb310d7487d88 (patch)
treefdf953bd2152e0b4a0bad2a8f2902a5c554b6a6d
parentREADME: 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.at2
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
69AT_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 \ 69AT_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
73AT_CHECK([$AR tPv subdir_build/dupes.a],[0],[stdout],[ignore]) 73AT_CHECK([$AR tPv subdir_build/dupes.a],[0],[stdout],[ignore])