示例#1
0
def sanityCheck():
	logger.subsection("checking to make sure system environment is sane")
	err = scheck.initialize()
	if(len(err) > 0):
		logger.subsection("the following errors resulted from sanity check:")
		for message in err:
			logger.subsection(message)
		logger.subsection("installation cannot continue")
		return 1
	else:
		logger.subsection("yup, system is sane")
		return 0
示例#2
0
 def test_oscheck(self):
   sanity.osCheck()
   self.assert_("Unsupported Operating System" not in sanity.errorsList)
示例#3
0
 def test_netcheck(self):
   sanity.networkCheck()
   self.assert_("Hostname is localhost" not in sanity.errorsList)
示例#4
0
 def test_rubycheck(self):
   sanity.rubyCheck()
   self.assert_("Ruby not found" not in sanity.errorsList)
示例#5
0
 def test_rootcheck(self):
   sanity.rootCheck()
   self.assert_("Not run as root" not in sanity.errorsList)
示例#6
0
 def test_oscheck(self):
     sanity.osCheck()
     self.assert_("Unsupported Operating System" not in sanity.errorsList)
示例#7
0
 def test_netcheck(self):
     sanity.networkCheck()
     self.assert_("Hostname is localhost" not in sanity.errorsList)
示例#8
0
 def test_rubycheck(self):
     sanity.rubyCheck()
     self.assert_("Ruby not found" not in sanity.errorsList)
示例#9
0
 def test_rootcheck(self):
     sanity.rootCheck()
     self.assert_("Not run as root" not in sanity.errorsList)