File: check-retry

package info (click to toggle)
cockpit 355-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 311,568 kB
  • sloc: javascript: 774,787; python: 40,655; ansic: 35,157; cpp: 11,141; sh: 3,512; makefile: 580; xml: 261
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()