MCPcopy Create free account
hub / github.com/FastLED/FastLED / integrate_with_test_framework

Function integrate_with_test_framework

ci/docker_utils/qemu_test_integration.py:118–142  ·  view source on GitHub ↗

Integrate Docker QEMU with the existing test framework. This function modifies the test.py to add Docker QEMU support.

()

Source from the content-addressed store, hash-verified

116
117
118def integrate_with_test_framework():
119 """Integrate Docker QEMU with the existing test framework.
120
121 This function modifies the test.py to add Docker QEMU support.
122 """
123 test_file = Path(__file__).parent.parent.parent / "test.py"
124
125 if not test_file.exists():
126 print(f"ERROR: test.py not found at {test_file}", file=sys.stderr)
127 return False
128
129 print(f"Integrating Docker QEMU support into {test_file}")
130
131 # Read the test.py file
132 content = test_file.read_text()
133
134 # Check if already integrated
135 if "qemu_test_integration" in content:
136 print("Docker QEMU support already integrated")
137 return True
138
139 # Find the QEMU test section and add Docker support
140
141 print("Successfully prepared Docker QEMU integration code")
142 return True
143
144
145def main():

Callers 1

mainFunction · 0.85

Calls 1

printFunction · 0.50

Tested by

no test coverage detected