Exemplo n.º 1
0
	def run(self):
		if os.system("mkfs.%s %s" % (self.job.attributes['fs-type'], PartitionBuilder.get_testpart())) != 0:
			return TaskResult.FAILED

		try:
			os.mkdir("/tank")
		except OSError:
			pass

		if os.system("mount %s /tank" % (PartitionBuilder.get_testpart())) != 0:
			return TaskResult.FAILED

		return TaskResult.PASSED
Exemplo n.º 2
0
    def run(self):
        if os.system("mkfs.%s %s" % (self.job.attributes['fs-type'],
                                     PartitionBuilder.get_testpart())) != 0:
            return TaskResult.FAILED

        try:
            os.mkdir("/tank")
        except OSError:
            pass

        if os.system("mount %s /tank" %
                     (PartitionBuilder.get_testpart())) != 0:
            return TaskResult.FAILED

        return TaskResult.PASSED
Exemplo n.º 3
0
    def run(self):
        if os.system("zpool create -f tank %s" %
                     (PartitionBuilder.get_testpart())) != 0:
            return TaskResult.FAILED

        return TaskResult.PASSED
Exemplo n.º 4
0
	def run(self):
		if os.system("zpool create -f tank %s" % (PartitionBuilder.get_testpart())) != 0:
			return TaskResult.FAILED

		return TaskResult.PASSED