tps: add do_repeat to cli

parent 24704ba9
......@@ -211,7 +211,14 @@ class Cli(cmd.Cmd, Suite):
def do_run(self, arg):
pass
def do_repeat(self, arg):
pass
if arg:
try:
self.repeat = int(arg)
except ValueError:
print arg, 'is not an integer'
else:
print self.repeat
def do_EOF(self, arg):
print
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment