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

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 71b585b4b5c0c579624d0d855ca9482c89c0db57
Author: Marco Casaroli <[email protected]>
AuthorDate: Mon Oct 19 10:02:06 2026 +0200

    tools/nxflat/testsuite.sh: Show the message of a failed conversion.
    
    When ldnxflat failed, the report showed the first line of its output
    that holds "error".  ldnxflat does not write that word, so the reason
    column stayed empty.  Show the first line of the output instead.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 tools/nxflat/testsuite.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/nxflat/testsuite.sh b/tools/nxflat/testsuite.sh
index ff2111a25a7..ef3ba27fb31 100755
--- a/tools/nxflat/testsuite.sh
+++ b/tools/nxflat/testsuite.sh
@@ -82,7 +82,7 @@ finish()   # $1 module name: convert and report
            grep -oE 'R_ARM_[A-Z0-9_]+' | sort | uniq -c | tr -s ' ' | tr '\n' 
' ')
 
   if ! "$LDNXFLAT" -e main -o "$d/m.nxf" "$d/m.r2" > "$d/ld.log" 2>&1; then
-    report "$name" LDNXFLAT "$(grep -m1 -iE 'error' "$d/ld.log")"
+    report "$name" LDNXFLAT "$(head -1 "$d/ld.log")"
     return 1
   fi
 

Reply via email to