2018-02-14 14:09:22 -05:00
|
|
|
import os
|
|
|
|
|
import sys
|
|
|
|
|
from TdcPlugin import TdcPlugin
|
|
|
|
|
|
|
|
|
|
from tdc_config import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SubPlugin(TdcPlugin):
|
|
|
|
|
def __init__(self):
|
|
|
|
|
self.sub_class = 'root/SubPlugin'
|
|
|
|
|
super().__init__()
|
|
|
|
|
|
2023-09-19 10:54:01 -03:00
|
|
|
def pre_suite(self, testcount, testlist):
|
2018-02-14 14:09:22 -05:00
|
|
|
# run commands before test_runner goes into a test loop
|
2023-09-19 10:54:01 -03:00
|
|
|
super().pre_suite(testcount, testlist)
|
2018-02-14 14:09:22 -05:00
|
|
|
|
|
|
|
|
if os.geteuid():
|
|
|
|
|
print('This script must be run with root privileges', file=sys.stderr)
|
|
|
|
|
exit(1)
|