You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/02/10 15:01:45 UTC
[incubator-nuttx] branch master updated: Get the full directory
name of the testbuild.sh no matter where called from
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 7ec66cc Get the full directory name of the testbuild.sh no matter where called from
7ec66cc is described below
commit 7ec66ccf94095549266d4932d0ebaf296f569199
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Mon Feb 10 11:47:03 2020 +0800
Get the full directory name of the testbuild.sh no matter where called from
Change-Id: I00cab8d97acb8e436622c0bdd4bc4bfe7374bca3
Signed-off-by: liuhaitao <li...@xiaomi.com>
---
tools/testbuild.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testbuild.sh b/tools/testbuild.sh
index 703f945..8e0d29c 100755
--- a/tools/testbuild.sh
+++ b/tools/testbuild.sh
@@ -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