Skip to content

Commit c3a531f

Browse files
committed
Enhance RTT test logging by checking for log file creation and displaying log file details
1 parent 39d95fb commit c3a531f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/test-rtt.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,13 @@ jobs:
150150
mkdir -p rtt_logs_ip
151151
timeout 15 bmlab-rtt --ip $VNET_BASE.100 $VNET_BASE.101 $VNET_BASE.102 --output-dir rtt_logs_ip --timeout 3 || true
152152
153+
echo "Checking log files..."
154+
ls -lh rtt_logs_ip/
155+
153156
# Check that log files were created for each IP
157+
# Note: dots in IP are replaced with underscores in filename
154158
for ip in 100 101 102; do
155-
logfile="rtt_logs_ip/rtt_${VNET_BASE}_${ip}.log"
159+
logfile="rtt_logs_ip/rtt_${VNET_BASE//./_}_${ip}.log"
156160
if [ ! -f "$logfile" ]; then
157161
echo "Test 5 failed: log file not found: $logfile"
158162
ls -la rtt_logs_ip/
@@ -166,7 +170,6 @@ jobs:
166170
done
167171
168172
echo "Test 5 passed: all log files created"
169-
ls -lh rtt_logs_ip/
170173
171174
- name: Cleanup after tests
172175
if: always()

0 commit comments

Comments
 (0)