| 1 | |
| 2 |
|
| 3 | class TdcPlugin:
|
| 4 | def __init__(self):
|
| 5 | super().__init__()
|
| 6 | print(' -- {}.__init__'.format(self.sub_class))
|
| 7 |
|
| 8 | def pre_suite(self, testcount, testlist):
|
| 9 |
|
| 10 | self.testcount = testcount
|
| 11 | self.testlist = testlist
|
| 12 | if self.args.verbose > 1:
|
| 13 | print(' -- {}.pre_suite'.format(self.sub_class))
|
| 14 |
|
| 15 | def post_suite(self, index):
|
| 16 | |
| 17 | index is the last ordinal number of test that was attempted
|
| 18 | if self.args.verbose > 1:
|
| 19 | print(' -- {}.post_suite'.format(self.sub_class))
|
| 20 |
|
| 21 | def pre_case(self, caseinfo, test_skip):
|
| 22 |
|
| 23 | if self.args.verbose > 1:
|
| 24 | print(' -- {}.pre_case'.format(self.sub_class))
|
| 25 | self.args.caseinfo = caseinfo
|
| 26 | self.args.test_skip = test_skip
|
| 27 |
|
| 28 | def post_case(self):
|
| 29 |
|
| 30 | if self.args.verbose > 1:
|
| 31 | print(' -- {}.post_case'.format(self.sub_class))
|
| 32 |
|
| 33 | def pre_execute(self):
|
| 34 |
|
| 35 | if self.args.verbose > 1:
|
| 36 | print(' -- {}.pre_execute'.format(self.sub_class))
|
| 37 |
|
| 38 | def post_execute(self):
|
| 39 |
|
| 40 | if self.args.verbose > 1:
|
| 41 | print(' -- {}.post_execute'.format(self.sub_class))
|
| 42 |
|
| 43 | def adjust_command(self, stage, command):
|
| 44 |
|
| 45 | if self.args.verbose > 1:
|
| 46 | print(' -- {}.adjust_command {}'.format(self.sub_class, stage))
|
| 47 |
|
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 |
|
| 63 | return command
|
| 64 |
|
| 65 | def add_args(self, parser):
|
| 66 |
|
| 67 | self.argparser = parser
|
| 68 | return self.argparser
|
| 69 |
|
| 70 | def check_args(self, args, remaining):
|
| 71 |
|
| 72 | self.args = args
|
| 73 | if self.args.verbose > 1:
|
| 74 | print(' -- {}.check_args'.format(self.sub_class))
|