File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9696 $IMAGE_TO_TEST tail -f /dev/null
9797 echo "container_name=$CONTAINER_NAME" >> $GITHUB_OUTPUT
9898
99+ - name : Run Debug Script in Container
100+ run : |
101+ docker exec ${{ steps.container.outputs.container_name }} \
102+ /app/tests/debug_shell.sh
103+
99104 - name : Run all tests in container
100105 run : |
101106 docker exec ${{ steps.container.outputs.container_name }} \
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+
4+ # Source the environment setup script
5+ /app/tests/load_nix_env.sh
6+
7+ echo " --- DEBUGGING SHELL ENVIRONMENT ---"
8+
9+ # Display shell information BEFORE the loop
10+ echo -e " \n[BEFORE LOOP] Shell PID: $$ "
11+ echo " [BEFORE LOOP] Subshell Level: $BASH_SUBSHELL "
12+ echo " [BEFORE LOOP] PATH: $PATH "
13+ echo " [BEFORE LOOP] EDITOR: ${EDITOR:- ' NOT SET' } "
14+
15+ echo -e " \n--- Starting 'find' loop ---"
16+
17+ # The 'find' command will locate one test file for the example
18+ find " /app/tests/env" -type f -name " *.sh" | while read -r test_script; do
19+ echo " "
20+ # Display information from INSIDE the loop
21+ # We use `$$` for the PID and `$BASH_SUBSHELL` to see if we're in a subshell
22+ echo " [INSIDE WHILE] Process PID: $$ "
23+ echo " [INSIDE WHILE] Subshell Level: $BASH_SUBSHELL "
24+ echo " [INSIDE WHILE] PATH: $PATH "
25+ echo " [INSIDE WHILE] EDITOR: ${EDITOR:- ' NOT SET' } "
26+ done
27+
28+ echo -e " \n--- End of debug script ---"
You can’t perform that action at this time.
0 commit comments