nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gn...@apache.org
Subject [incubator-nuttx-testing] 11/41: cibuild.sh: use pushd/popd to make sure testlist path correctly
Date Fri, 01 May 2020 20:50:32 GMT
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-testing.git

commit 97098c26d2eca5ce81dd7beeaf74287171f12e1a
Author: liuhaitao <liuhaitao@xiaomi.com>
AuthorDate: Thu Mar 5 10:09:14 2020 +0800

    cibuild.sh: use pushd/popd to make sure testlist path correctly
    
    Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
---
 cibuild.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/cibuild.sh b/cibuild.sh
index 50f850c..f6dc1d1 100755
--- a/cibuild.sh
+++ b/cibuild.sh
@@ -152,6 +152,7 @@ function enable_ccache {
 }
 
 function setup_repos {
+  pushd .
   if [ -d "$nuttx" ]; then
     cd $nuttx; git pull
   else
@@ -163,12 +164,15 @@ function setup_repos {
   else
     git clone https://github.com/apache/incubator-nuttx-apps.git $apps
   fi
+  popd
 }
 
 function install_tools {
+  pushd .
   for func in $install; do
     $func
   done
+  popd
 }
 
 function run_builds {
@@ -176,10 +180,7 @@ function run_builds {
   options+="-j $ncpus"
 
   for build in $builds; do
-    local builddir=$(cd $(dirname $build) && pwd)
-    local buildfile=$(basename $build)
-
-    $nuttx/tools/testbuild.sh $options $builddir/$buildfile
+    $nuttx/tools/testbuild.sh $options $build
   done
 }
 


Mime
View raw message