blob: ec4585f5c466f6d09ec4b4ee4e51079a4803fbc2 [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001#!/usr/bin/env python
kelvin-onlabb87672e2015-01-16 10:58:34 -08002"""
adminbae64d82013-08-01 10:50:15 -07003Created on 26-Nov-2012
4
kelvin-onlabb87672e2015-01-16 10:58:34 -08005author:: Raghav Kashyap( raghavkashyap@paxterrasolutions.com )
adminbae64d82013-08-01 10:50:15 -07006
7 TestON is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 2 of the License, or
kelvin-onlabb87672e2015-01-16 10:58:34 -080010 ( at your option ) any later version.
adminbae64d82013-08-01 10:50:15 -070011
12 TestON is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
kelvin-onlabb87672e2015-01-16 10:58:34 -080018 along with TestON. If not, see <http://www.gnu.org/licenses/>.
adminbae64d82013-08-01 10:50:15 -070019
20
kelvin-onlabb87672e2015-01-16 10:58:34 -080021"""
adminbae64d82013-08-01 10:50:15 -070022import pexpect
kelvin-onlabb87672e2015-01-16 10:58:34 -080023import struct
24import fcntl
25import os
adminbae64d82013-08-01 10:50:15 -070026import sys
kelvin-onlabb87672e2015-01-16 10:58:34 -080027import signal
28import sys
29sys.path.append( "../" )
adminbae64d82013-08-01 10:50:15 -070030from drivers.common.clidriver import CLI
31
32
kelvin-onlabb87672e2015-01-16 10:58:34 -080033class Tools( CLI ):
adminbae64d82013-08-01 10:50:15 -070034 # The common functions for Tools included in toolsdriver
kelvin-onlabb87672e2015-01-16 10:58:34 -080035
36 def __init__( self ):
37 super( CLI, self ).__init__()