File: check-retry

package info (click to toggle)
cockpit 337-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 36,232 kB
  • sloc: javascript: 47,090; python: 38,766; ansic: 35,470; xml: 6,048; sh: 3,413; makefile: 614
file content (23 lines) | stat: -rwxr-xr-x 551 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/python3 -cimport os, sys; os.execv(os.path.dirname(sys.argv[1]) + "/../common/pywrap", sys.argv)
import os
import unittest

import testlib


class NoTestRetryExample(unittest.TestCase):

    def testFail(self):
        if os.environ.get('TEST_FAILURES'):
            self.assertFalse(True)  # noqa: FBT003

    @testlib.no_retry_when_changed
    def testNoRetry(self):
        self.assertTrue(True)  # noqa: FBT003

    def testBasic(self):
        self.assertTrue(True)  # noqa: FBT003


if __name__ == '__main__':
    testlib.test_main()