File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,20 @@ def __init__(self):
21
21
22
22
self .path = path if path else ''
23
23
24
+ def check (self ):
25
+ if not self .checkOS ():
26
+ print 'I do not think we support your OS. Sorry.'
27
+ return 1
28
+
29
+ success = self .checkCompiler ()
30
+
31
+ if success :
32
+ self .checkAuxiliaries ()
33
+
34
+ return 0 if success else 1
35
+
36
+
37
+
24
38
def checkOS (self ):
25
39
return (sys .platform .startswith ('freebsd' ) or
26
40
sys .platform .startswith ('linux' ) or
Original file line number Diff line number Diff line change @@ -9,19 +9,8 @@ from sanity.checker import *
9
9
10
10
def main (args ):
11
11
12
- checker = Checker ()
12
+ return Checker (). check ()
13
13
14
- if not checker .checkOS ():
15
- print 'I do not think we support your OS. Sorry.'
16
- return 1
17
-
18
- success = checker .checkCompiler ()
19
-
20
- if success :
21
- checker .checkAuxiliaries ()
22
-
23
- return 0 if success else 1
24
-
25
14
26
15
if __name__ == '__main__' :
27
16
sys .exit (main (sys .argv ))
You can’t perform that action at this time.
0 commit comments