Skip to content

Commit e1be613

Browse files
authored
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.
1 parent 4532b36 commit e1be613

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
@@ -144,6 +144,7 @@ class TraceBackend:
144144
EXTENSION = None
145145
COMMAND = None
146146
COMMAND_ARGS = []
147+
USABILITY_TIMEOUT = 10
147148

148149
def run_case(self, name, optimize_python=None):
149150
try:
@@ -195,7 +196,7 @@ def trace_python(self, script_file, python_file, optimize_python=None):
195196
def assert_usable(self):
196197
try:
197198
output = self.trace(abspath("assert_usable" + self.EXTENSION),
198-
timeout=10)
199+
timeout=self.USABILITY_TIMEOUT)
199200
output = output.strip()
200201
except subprocess.TimeoutExpired:
201202
raise unittest.SkipTest(
@@ -220,6 +221,7 @@ class SystemTapBackend(TraceBackend):
220221
EXTENSION = ".stp"
221222
COMMAND = ["stap", "-g"]
222223
PROBE_PLACEHOLDER = "@PYTHON_SYSTEMTAP_PROBE@"
224+
USABILITY_TIMEOUT = 60
223225

224226
@staticmethod
225227
def quote_systemtap_string(value):

0 commit comments

Comments
 (0)