Get the full directory name of the testbuild.sh no matter where called from

Change-Id: I00cab8d97acb8e436622c0bdd4bc4bfe7374bca3
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
liuhaitao 2020-02-10 11:47:03 +08:00 committed by patacongo
parent d09af3b7f3
commit 7ec66ccf94

View File

@ -32,13 +32,13 @@
# POSSIBILITY OF SUCH DAMAGE.
#
WD=$PWD
WD=$(cd $(dirname $0) && cd .. && pwd)
nuttx=$WD/../nuttx
progname=$0
fail=0
sizet=default
APPSDIR=../apps
APPSDIR=$WD/../apps
MAKE_FLAGS=-k
MAKE=make
unset testfile