![]() |
|
|||
0001 import os 0002 import sys 0003 from TdcPlugin import TdcPlugin 0004 0005 from tdc_config import * 0006 0007 0008 class SubPlugin(TdcPlugin): 0009 def __init__(self): 0010 self.sub_class = 'root/SubPlugin' 0011 super().__init__() 0012 0013 def pre_suite(self, testcount, testidlist): 0014 # run commands before test_runner goes into a test loop 0015 super().pre_suite(testcount, testidlist) 0016 0017 if os.geteuid(): 0018 print('This script must be run with root privileges', file=sys.stderr) 0019 exit(1)
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |