Skip to content
Snippets Groups Projects
Commit 34bb64ed authored by lantz's avatar lantz
Browse files

Merge pull request #249 from yeasy/master

Close the file when done with it.
parents 873049c3 bb485009
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ def do_pingpair( self, _line ):
self.mn.pingPair()
def do_pingallfull( self, _line ):
"Ping between first two hosts, returns all ping results."
"Ping between all hosts, returns all ping results."
self.mn.pingAllFull()
def do_pingpairfull( self, _line ):
......@@ -187,7 +187,7 @@ def do_iperf( self, line ):
error( 'invalid number of args: iperf src dst\n' )
def do_iperfudp( self, line ):
"Simple iperf TCP test between two (optionally specified) hosts."
"Simple iperf UDP test between two (optionally specified) hosts."
args = line.split()
if not args:
self.mn.iperf( l4Type='UDP' )
......@@ -297,6 +297,7 @@ def do_source( self, line ):
break
except IOError:
error( 'error reading file %s\n' % args[ 0 ] )
self.inputFile.close()
self.inputFile = None
def do_dpctl( self, line ):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment