Sfoglia il codice sorgente

Fix logging in various Bash scripts

Mario Zechner 1 mese fa
parent
commit
f2fced8bf8
3 ha cambiato i file con 4 aggiunte e 7 eliminazioni
  1. 0 2
      formatters/format.sh
  2. 2 2
      spine-cpp/tests/test.sh
  3. 2 3
      tests/generate-serializers.sh

+ 0 - 2
formatters/format.sh

@@ -97,8 +97,6 @@ while [[ $# -gt 0 ]]; do
     esac
 done
 
-log_title "Code Formatting"
-
 # Call individual formatter scripts (they handle their own logging)
 if [ "$FORMAT_CPP" = true ]; then
     "$dir/format-cpp.sh"

+ 2 - 2
spine-cpp/tests/test.sh

@@ -37,7 +37,7 @@ log_detail "Platform: $(uname)"
 
 log_action "Building all variants"
 if BUILD_OUTPUT=$(./build.sh clean release 2>&1); then
-    log_ok "Build completed"
+    log_ok
 else
     log_fail "Build failed"
     log_detail "$BUILD_OUTPUT"
@@ -58,7 +58,7 @@ for exe in build/headless-test*; do
             actual_output=$(echo "$OUTPUT" | head -10)
 
             if [ "$actual_output" = "$EXPECTED_OUTPUT" ]; then
-                log_ok "$exe_name"
+                log_ok
                 pass_count=$((pass_count + 1))
             else
                 log_fail "$exe_name - output mismatch"

+ 2 - 3
tests/generate-serializers.sh

@@ -19,9 +19,8 @@ fi
 if [ ! -d "node_modules" ]; then
     log_action "Installing dependencies"
     if npm install > /tmp/npm-install.log 2>&1; then
-        log_ok "Dependencies installed"
+        log_ok
     else
-        log_fail "npm install failed"
         log_detail "$(cat /tmp/npm-install.log)"
         exit 1
     fi
@@ -57,7 +56,7 @@ fi
 
 log_action "Generating C++ SkeletonSerializer"
 if output=$(npx -y tsx src/generate-cpp-serializer.ts 2>&1); then
-    log_ok "C++ serializer generated successfully"
+    log_ok
 else
     log_fail "Failed to generate C++ serializer"
     log_detail "$output"