]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Use /bin/sh instead of /bin/ls as always there binary
authorMark Wielaard <mark@klomp.org>
Fri, 17 Dec 2021 17:39:09 +0000 (18:39 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 17 Dec 2021 17:39:09 +0000 (18:39 +0100)
run-debuginfod-query-retry.sh would fail when /bin/ls wasn't available.
Use /bin/sh instead which really is always available.

GNU Guix doesn't have any other standard binary in /bin except for sh.

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/ChangeLog
tests/run-debuginfod-query-retry.sh

index 82061c6e9a5854b6b51beb5897e13ded89411355..c97ed52e76e6a381f666d20b27ae97175f49b05d 100644 (file)
@@ -1,3 +1,7 @@
+2021-12-17  Mark Wielaard  <mark@klomp.org>
+
+       * run-debuginfod-query-retry.sh: Use /bin/sh instead of /bin/ls.
+
 2021-12-09  Frank Ch. Eigler  <fche@redhat.com>
 
        * debuginfod-subr.sh (xfail): New proc.
index c9192510e205f294922c1140fffdefcc9d2946db..0cfdba92d5e38053abd3b2f30dcab67fa7672d5e 100755 (executable)
@@ -25,7 +25,7 @@ unset VALGRIND_CMD
 ########################################################################
 # set up tests for retrying failed queries.
 retry_attempts=`(testrun env DEBUGINFOD_URLS=http://255.255.255.255/JUNKJUNK DEBUGINFOD_RETRY_LIMIT=10 DEBUGINFOD_VERBOSE=1 DEBUGINFOD_CACHE_PATH=${PWD}/.client_cache \
-        ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo /bin/ls || true) 2>&1 >/dev/null \
+        ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo /bin/sh || true) 2>&1 >/dev/null \
         | grep -c 'Retry failed query'`
 if [ $retry_attempts -ne 10 ]; then
     echo "retry mechanism failed."