1 import os 1 import os 2 import sys 2 import sys 3 from TdcPlugin import TdcPlugin 3 from TdcPlugin import TdcPlugin 4 4 5 from tdc_config import * 5 from tdc_config import * 6 6 7 7 8 class SubPlugin(TdcPlugin): 8 class SubPlugin(TdcPlugin): 9 def __init__(self): 9 def __init__(self): 10 self.sub_class = 'root/SubPlugin' 10 self.sub_class = 'root/SubPlugin' 11 super().__init__() 11 super().__init__() 12 12 13 def pre_suite(self, testcount, testlist): !! 13 def pre_suite(self, testcount, testidlist): 14 # run commands before test_runner goes 14 # run commands before test_runner goes into a test loop 15 super().pre_suite(testcount, testlist) !! 15 super().pre_suite(testcount, testidlist) 16 16 17 if os.geteuid(): 17 if os.geteuid(): 18 print('This script must be run wit 18 print('This script must be run with root privileges', file=sys.stderr) 19 exit(1) 19 exit(1)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.