summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZhang Qiang <qiang.z.zhang@intel.com>2011-12-16 18:56:35 +0800
committerZhang Qiang <qiang.z.zhang@intel.com>2011-12-16 18:56:35 +0800
commitdb17eb76b0d86773d8c9cf6697d1fdc93649f4ee (patch)
tree4de7c20a4bb4f82c71786e480999872af0a176fa /tests
parentffe98af4b1a0841489a84e1b459432d07251ddd8 (diff)
downloadmic-db17eb76b0d86773d8c9cf6697d1fdc93649f4ee.tar.gz
mic-db17eb76b0d86773d8c9cf6697d1fdc93649f4ee.tar.bz2
mic-db17eb76b0d86773d8c9cf6697d1fdc93649f4ee.zip
mic-test.py: root permission check
Diffstat (limited to 'tests')
-rw-r--r--tests/mic-test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/mic-test.py b/tests/mic-test.py
index 4dbba3d..b44cc67 100644
--- a/tests/mic-test.py
+++ b/tests/mic-test.py
@@ -31,5 +31,8 @@ def MICtestsuite():
return alltests
if __name__ == '__main__':
+ if os.getuid() != 0:
+ raise SystemExit("Root permission is needed")
+
suite = MICtestsuite()
unittest.TextTestRunner(verbosity=2).run(suite)