Skip to content

Commit 03c5d7f

Browse files
stratakisvstinner
authored andcommitted
gh-156701: Increase the SystemTap usability timeout (#156720)
SystemTap may compile a kernel module during its usability check (if no cached module is available). We need to allow a larger timeout for that case. (cherry picked from commit e1be613)
1 parent f5fc86d commit 03c5d7f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Lib/test/test_dtrace.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ class TraceBackend:
138138
EXTENSION = None
139139
COMMAND = None
140140
COMMAND_ARGS = []
141+
USABILITY_TIMEOUT = 10
141142

142143
def run_case(self, name, optimize_python=None):
143144
try:
@@ -189,7 +190,7 @@ def trace_python(self, script_file, python_file, optimize_python=None):
189190
def assert_usable(self):
190191
try:
191192
output = self.trace(abspath("assert_usable" + self.EXTENSION),
192-
timeout=10)
193+
timeout=self.USABILITY_TIMEOUT)
193194
output = output.strip()
194195
except subprocess.TimeoutExpired:
195196
raise unittest.SkipTest(
@@ -212,6 +213,7 @@ class SystemTapBackend(TraceBackend):
212213
EXTENSION = ".stp"
213214
COMMAND = ["stap", "-g"]
214215
PROBE_PLACEHOLDER = "@PYTHON_SYSTEMTAP_PROBE@"
216+
USABILITY_TIMEOUT = 60
215217

216218
@staticmethod
217219
def quote_systemtap_string(value):

0 commit comments

Comments
 (0)