Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Lib/test/test_dtrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ class TraceBackend:
EXTENSION = None
COMMAND = None
COMMAND_ARGS = []
USABILITY_TIMEOUT = 10

def run_case(self, name, optimize_python=None):
try:
Expand Down Expand Up @@ -183,7 +184,7 @@ def trace_python(self, script_file, python_file, optimize_python=None):
def assert_usable(self):
try:
output = self.trace(abspath("assert_usable" + self.EXTENSION),
timeout=10)
timeout=self.USABILITY_TIMEOUT)
output = output.strip()
except subprocess.TimeoutExpired:
raise unittest.SkipTest(
Expand All @@ -208,6 +209,7 @@ class SystemTapBackend(TraceBackend):
EXTENSION = ".stp"
COMMAND = ["stap", "-g"]
PROBE_PLACEHOLDER = "@PYTHON_SYSTEMTAP_PROBE@"
USABILITY_TIMEOUT = 60

@staticmethod
def quote_systemtap_string(value):
Expand Down
Loading