summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Goldberg <rgoldber@redhat.com>2022-09-02 12:32:16 -0400
committerRyan Goldberg <rgoldber@redhat.com>2022-09-02 12:32:16 -0400
commit526ead09c8e13a75c97c0f921a1b00d0ba828e16 (patch)
tree09c684458da2705397ad295c70b01d03ad4e71e9
parentb797738fef2be7bff8911b4390692c0e58984213 (diff)
-rwxr-xr-xtests/run-debuginfod-find-metadata.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run-debuginfod-find-metadata.sh b/tests/run-debuginfod-find-metadata.sh
index be78b5c4..18c57067 100755
--- a/tests/run-debuginfod-find-metadata.sh
+++ b/tests/run-debuginfod-find-metadata.sh
@@ -66,7 +66,7 @@ export DEBUGINFOD_URLS=http://127.0.0.1:$PORT2
tempfiles json.txt
# Check that we find 11 files(which means that the local and upstream correctly reply to the query)
-N_FOUND=`${abs_top_builddir}/debuginfod/debuginfod-find metadata "/?sr*" | jq '. | length'`
+N_FOUND=`env LD_LIBRARY_PATH=$ldpath ${abs_builddir}/../debuginfod/debuginfod-find metadata "/?sr*" | jq '. | length'`
test $N_FOUND -eq 11
# Query via the webapi as well
@@ -75,7 +75,7 @@ EXPECTED='[ { "atype": "e", "buildid": "f17a29b5a25bd4960531d82aa6b07c8abe84fa66
test `curl http://127.0.0.1:$PORT2/metadata?glob=/usr/bin/*hi* | jq ". == $EXPECTED" ` = 'true'
# An empty array is returned on server error or if the file DNE
-test `${abs_top_builddir}/debuginfod/debuginfod-find metadata "/this/isnt/there" | jq ". == [ ]" ` = 'true'
+test `env LD_LIBRARY_PATH=$ldpath ${abs_builddir}/../debuginfod/debuginfod-find metadata "/this/isnt/there" | jq ". == [ ]" ` = 'true'
kill $PID1
kill $PID2
@@ -84,6 +84,6 @@ wait $PID2
PID1=0
PID2=0
-test `${abs_top_builddir}/debuginfod/debuginfod-find metadata "/usr/bin/hithere" | jq ". == [ ]" ` = 'true'
+test `env LD_LIBRARY_PATH=$ldpath ${abs_builddir}/../debuginfod/debuginfod-find metadata "/usr/bin/hithere" | jq ". == [ ]" ` = 'true'
exit 0