Something went wrong. Try again.
Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
489 B · 19 lines
Python
at master
1234567891011121314151617181920import osimport sysfrom TdcPlugin import TdcPlugin
from tdc_config import *
class SubPlugin(TdcPlugin): def __init__(self): self.sub_class = 'root/SubPlugin' super().__init__()
def pre_suite(self, testcount, testlist): # run commands before test_runner goes into a test loop super().pre_suite(testcount, testlist)
if os.geteuid(): print('This script must be run with root privileges', file=sys.stderr) exit(1)