mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-22 14:32:58 +00:00
Make tests/*.sh runnable from anywhere
This commit is contained in:
@@ -1049,6 +1049,11 @@ run_client() {
|
||||
# MAIN
|
||||
#
|
||||
|
||||
if cd $( dirname $0 ); then :; else
|
||||
echo "cd $( dirname $0 ) failed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
get_options "$@"
|
||||
|
||||
# sanity checks, avoid an avalanche of errors
|
||||
|
||||
@@ -460,6 +460,11 @@ cleanup() {
|
||||
# MAIN
|
||||
#
|
||||
|
||||
if cd $( dirname $0 ); then :; else
|
||||
echo "cd $( dirname $0 ) failed" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
get_options "$@"
|
||||
|
||||
# sanity checks, avoid an avalanche of errors
|
||||
|
||||
Reference in New Issue
Block a user