From e063ad2dc00d455e7c6d9cde8f27ea962cf2d8e6 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Wed, 27 Aug 2025 22:37:17 +0200 Subject: [PATCH] Update action.yml --- action.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/action.yml b/action.yml index 0db83ae..da07575 100644 --- a/action.yml +++ b/action.yml @@ -279,20 +279,13 @@ runs: cat > custom_cmd.sh <<'EOS' # Taille initiale du fichier - initial_size=$(stat -c%s "$PRINTS") + echo -e "\033[95m--- PRINTS of external processes (before pytest) ---\033[0m" >> "$tmpfile" + ${{ inputs.test-run-cmd }} - # Taille après exécution - final_size=$(stat -c%s "$PRINTS") - - if [ "$final_size" -gt "$initial_size" ]; then - # Il y a eu des prints externes → ajouter header et footer - tmpfile=$(mktemp) - echo -e "\033[95m--- PRINTS of external processes (before pytest) ---\033[0m" >> "$tmpfile" - tail -c +"$((initial_size+1))" "$PRINTS" >> "$tmpfile" - echo -e "\033[95m--- PRINTS of external processes (after pytest) ---\033[0m" >> "$tmpfile" - mv "$tmpfile" "$PRINTS" + echo -e "\033[95m--- PRINTS of external processes (after pytest) ---\033[0m" >> "$tmpfile" + fi EOS