Changeset 1435 for TI05-delivery


Ignore:
Timestamp:
22/08/06 10:54:47 (13 years ago)
Author:
spascoe
Message:

Some bugs fixed in test_remote.py.

Remote test cases pass between callisto and saturn.

Location:
TI05-delivery/trunk/test
Files:
2 edited

Legend:

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

    r1434 r1435  
    6161ach = AuthClientHandler(privatestr) 
    6262 
    63 print "** runclient.py: connecting" 
     63print "** runclient.py: connecting with args %s" % args 
    6464msgs = DC.connect(ach, args) 
    6565for msg in msgs: 
  • TI05-delivery/trunk/test/test_remote.py

    r1434 r1435  
    66""" 
    77 
    8 import sys, os, unittest 
     8import sys, os, unittest, socket 
    99 
    1010 
     
    2020    def config(klass): 
    2121        # Get remote config from the user 
    22         print 'Enter the <user>@<hostname> of remote client: ', 
     22        print 'Enter the ssh of remote client ([<user>]@<hostname>): ', 
    2323        klass.userhost = sys.stdin.readline().strip() 
    2424        print 'Enter path to runclient.py [default "runclient.py"]: ', 
     
    2626        if not klass.executable: 
    2727            klass.executable = 'runclient.py' 
    28  
    2928 
    3029    def _runClient(self, cmds, debug=False, user="remotetestcase", privatestr=None): 
     
    4746            args += ['-P', privatestr] 
    4847 
    49         args.append('localhost') 
     48        args.append(socket.gethostname()) 
    5049 
    51         fh = os.popen('ssh %s %s %s' % (self.userhost, self.executable, ' '.join(args))) 
     50        fh = os.popen('ssh %s %s "%s"' % (self.userhost, self.executable, ' '.join(args))) 
    5251        output = fh.read() 
    5352        print >>open('./bbftpc.log', 'w'), output 
    5453 
    5554        return output 
     55 
     56    def testRetr(self): 
     57        pass 
     58    def testStore(self): 
     59        pass 
    5660 
    5761 
Note: See TracChangeset for help on using the changeset viewer.