kfdtest: Fix problems finding kfdtest.exclude

When running run_kfdtest.sh through a wrapper script that sources
run_kfdtest.sh, kfdtest.exclude isn't found because $0 points to the
location of the wrapper script. User $BASH_SOURCE instead of $0 to
find the location of the correct run_kfdtest.sh script.

Change-Id: I0ae7899e527e6d98bb8651197484e5ee03a5fd7b
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>


[ROCm/ROCR-Runtime commit: 8ee763d94a]
Tá an tiomantas seo le fáil i:
Felix Kuehling tiomanta 2020-04-16 18:23:33 -04:00
1 tuismitheoir b72f1720ef
tiomantas b92235e1a4
1 comhad athraithe
+1 -1
@@ -23,7 +23,7 @@
#
# See if we can find the SHARE/BIN dirs in their expected locations
CWD="${0%/*}"
CWD="${BASH_SOURCE%/*}"
while read candidate; do
if [ -e "$candidate/kfdtest.exclude" ]; then
source "$candidate/kfdtest.exclude"