Ignore:
Timestamp:
27/06/06 12:02:34 (15 years ago)
Author:
spascoe
Message:

New test case confirms multiple client commands works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/test/runclient.py

    r1246 r1247  
    1616 
    1717# Extract the command (-e) since bbftpc doesn't use it any more 
     18# Allow multiple commands 
    1819args = sys.argv[1:] 
    19 ei = args.index('-e') 
    20 cmd = args[ei+1] 
    21 args = args[:ei] + args[ei+2:] 
     20cmds = [] 
     21 
     22while True: 
     23    try: 
     24        ei = args.index('-e') 
     25    except ValueError: 
     26        break 
     27    cmds.append(args[ei+1]) 
     28    args = args[:ei] + args[ei+2:] 
    2229 
    2330BC.run(args) 
    24 BC.docommand(cmd) 
     31for cmd in cmds: 
     32    BC.docommand(cmd) 
    2533BC.close() 
Note: See TracChangeset for help on using the changeset viewer.