You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/10/29 07:14:27 UTC

[incubator-nuttx] branch master updated: build: Fix testbuild.sh artifact copy on macOS

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang 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 e56a714  build: Fix testbuild.sh artifact copy on macOS
e56a714 is described below

commit e56a7146c2e00f30667021e74f273e92ddd1458b
Author: Brennan Ashton <ba...@brennanashton.com>
AuthorDate: Wed Oct 28 20:06:40 2020 -0700

    build: Fix testbuild.sh artifact copy on macOS
    
    xargs for macOS does not support the '-a/--file-arg' flag so
    build artifacts were not getting stored.  This change passes it in
    via stdin which is more portable.
    
    Signed-off-by: Brennan Ashton <ba...@brennanashton.com>
---
 tools/testbuild.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testbuild.sh b/tools/testbuild.sh
index 9876111..6c3d8d8 100755
--- a/tools/testbuild.sh
+++ b/tools/testbuild.sh
@@ -258,7 +258,7 @@ function build {
   if [ ${SAVEARTIFACTS} -eq 1 ]; then
     artifactconfigdir=$ARTIFACTDIR/$(echo $config | sed "s/:/\//")/
     mkdir -p $artifactconfigdir
-    xargs -a $nuttx/nuttx.manifest cp -t $artifactconfigdir
+    xargs -I "{}" cp "{}" $artifactconfigdir < $nuttx/nuttx.manifest
   fi
 
   # Ensure defconfig in the canonical form