Skip to content

Commit 0bb6499

Browse files
Extract TRACETOOLS_TEST_DEBUG env var constant
Signed-off-by: Christophe Bedard <[email protected]>
1 parent 1963a71 commit 0bb6499

File tree

1 file changed

+3
-1
lines changed
  • tracetools_test/tracetools_test

1 file changed

+3
-1
lines changed

tracetools_test/tracetools_test/case.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ class TraceTestCase(unittest.TestCase):
5151
The assert*() functions are specifically in mixedCase to match the unittest functions.
5252
"""
5353

54+
ENV_VAR_DEBUG = 'TRACETOOLS_TEST_DEBUG'
55+
5456
def __init__(
5557
self,
5658
*args,
@@ -111,7 +113,7 @@ def setUp(self):
111113
self.assertProcessNamesExist(self._nodes)
112114

113115
def tearDown(self):
114-
if not os.environ.get('TRACETOOLS_TEST_DEBUG', None):
116+
if not os.environ.get(self.ENV_VAR_DEBUG, None):
115117
cleanup_trace(self._full_path)
116118

117119
def assertEventsSet( # noqa: N802

0 commit comments

Comments
 (0)