aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2016-04-13 16:07:23 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-04-18 13:28:05 -0700
commit4b432ed3aa3ea586ebc4bb6cd9cf1d56a6d492ca (patch)
treec2d6026526a581a270b6eeaf75845f64340d55d0 /external
parent2bb9b99bf19b5f47f8659f56e641f79e76382dba (diff)
downloadskiboot-4b432ed3aa3ea586ebc4bb6cd9cf1d56a6d492ca.zip
skiboot-4b432ed3aa3ea586ebc4bb6cd9cf1d56a6d492ca.tar.gz
skiboot-4b432ed3aa3ea586ebc4bb6cd9cf1d56a6d492ca.tar.bz2
boot-tests: allow running boot_test.sh via a symlink
In boot_test.sh, use readlink when working out the path to source {fsp,bmc}_support.sh, so the script doesn't fail when run using a symlink from outside the boot-tests directory. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rwxr-xr-xexternal/boot-tests/boot_test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/boot-tests/boot_test.sh b/external/boot-tests/boot_test.sh
index 58e2282..40fc954 100755
--- a/external/boot-tests/boot_test.sh
+++ b/external/boot-tests/boot_test.sh
@@ -243,7 +243,7 @@ fi
# pull in the relevant config file and set things up
-source $(dirname $0)/${method}_support.sh
+source $(dirname $(readlink -f $0))/${method}_support.sh
IPMI_COMMAND="ipmitool -I lanplus -H $target $IPMI_AUTH"
msg "Running sanity test"