projects
/
platform
/
upstream
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffe98af
)
mic-test.py: root permission check
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Fri, 16 Dec 2011 10:56:35 +0000
(18:56 +0800)
committer
Zhang Qiang
<qiang.z.zhang@intel.com>
Fri, 16 Dec 2011 10:56:35 +0000
(18:56 +0800)
tests/mic-test.py
patch
|
blob
|
history
diff --git
a/tests/mic-test.py
b/tests/mic-test.py
index
4dbba3d
..
b44cc67
100644
(file)
--- 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)