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]
Этот коммит содержится в:
Felix Kuehling
2020-03-05 11:27:27 -05:00
родитель b72f1720ef
Коммит b92235e1a4
+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"