summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/issue_verification/rerun_base.py
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:57 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:57 +0000
commit88c643b6fec27eec436c8d138fee6346e92337d6 (patch)
tree82cd13b2f3cde1c9e5f79689ba4e6ba67694843f /packages/Python/lldbsuite/test/issue_verification/rerun_base.py
parent94994d372d014ce4c8758b9605d63fae651bd8aa (diff)
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/issue_verification/rerun_base.py')
-rw-r--r--packages/Python/lldbsuite/test/issue_verification/rerun_base.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/packages/Python/lldbsuite/test/issue_verification/rerun_base.py b/packages/Python/lldbsuite/test/issue_verification/rerun_base.py
deleted file mode 100644
index 2ce775dced139..0000000000000
--- a/packages/Python/lldbsuite/test/issue_verification/rerun_base.py
+++ /dev/null
@@ -1,28 +0,0 @@
-from __future__ import print_function
-
-import os
-
-import lldbsuite.test.lldbtest as lldbtest
-
-
-# pylint: disable=too-few-public-methods
-class RerunBaseTestCase(lldbtest.TestBase):
- """Forces test failure."""
- mydir = lldbtest.TestBase.compute_mydir(__file__)
-
- def should_generate_issue(self):
- """Returns whether a test issue should be generated.
-
- @returns True on the first and every other call via a given
- test method.
- """
- should_pass_filename = "{}.{}.succeed-marker".format(
- __file__, self.id())
- fail = not os.path.exists(should_pass_filename)
- if fail:
- # Create the marker so that next call to this passes.
- open(should_pass_filename, 'w').close()
- else:
- # Delete the marker so next time we fail.
- os.remove(should_pass_filename)
- return fail