staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / tc-testing / plugin-lib / rootPlugin.py
blobe36775bd4d123ba7d0be6aa77ef37f0c52bae0d9
1 import os
2 import sys
3 from TdcPlugin import TdcPlugin
5 from tdc_config import *
8 class SubPlugin(TdcPlugin):
9 def __init__(self):
10 self.sub_class = 'root/SubPlugin'
11 super().__init__()
13 def pre_suite(self, testcount, testidlist):
14 # run commands before test_runner goes into a test loop
15 super().pre_suite(testcount, testidlist)
17 if os.geteuid():
18 print('This script must be run with root privileges', file=sys.stderr)
19 exit(1)