File tree Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ """Verify that TMT has the DebugLevelFilter patch applied."""
3+
4+ import sys
5+ sys .path .insert (0 , "/home/runner/.local/lib/python3.13/site-packages" )
6+
7+ import tmt .log
8+ import inspect
9+
10+ # Check if the patch is applied by looking at DebugLevelFilter
11+ source = inspect .getsource (tmt .log .DebugLevelFilter .filter )
12+ if "return False" in source and "Filter out DEBUG messages" in source :
13+ print ("✓ PATCH CONFIRMED: DebugLevelFilter has the fix applied" )
14+ sys .exit (0 )
15+ else :
16+ print ("✗ WARNING: Patch may not be applied correctly" )
17+ print ("Source code:" )
18+ print (source )
19+ sys .exit (1 )
Original file line number Diff line number Diff line change 4040 tmt --version
4141
4242 echo "=== Verify we have the patched version ==="
43- python3 << 'EOF'
44- import sys
45- sys.path.insert(0, '/home/runner/.local/lib/python3.13/site-packages')
46- import tmt.log
47- import inspect
48-
49- # Check if the patch is applied by looking at DebugLevelFilter
50- source = inspect.getsource(tmt.log.DebugLevelFilter.filter)
51- if 'return False' in source and 'Filter out DEBUG messages' in source :
52- print("✓ PATCH CONFIRMED : DebugLevelFilter has the fix applied")
53- else :
54- print("✗ WARNING : Patch may not be applied correctly")
55- print("Source code:")
56- print(source)
57- EOF
43+ python3 .github/scripts/verify-tmt-patch.py
5844
5945 echo ""
6046 echo "=== Critical: Check RUNNER_DEBUG, ENABLE_RUNNER_TRACING, and CI ==="
You can’t perform that action at this time.
0 commit comments