Permalink
Browse files

functional/test_screen: fix typos

  • Loading branch information...
1 parent ddbccf8 commit 68c19a797c83d86c79a48c4042f6b0243f99faff Marc Sibson committed Feb 24, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 tests/functional/test_screen.py
@@ -14,15 +14,15 @@ def run_server(self, server):
cmd = '%s -rfbport 5910 -rfbwait 1000' % server
self.server = pexpect.spawn(cmd, timeout=2)
self.server.logfile_read = sys.stdout
-
+
def run_vncdotool(self, commands, exitcode=0):
cmd = 'vncdotool -d 10 ' + commands
vnc = pexpect.spawn(cmd, logfile=sys.stdout, timeout=5)
vnc.logfile_read = sys.stdout
vnc.expect(pexpect.EOF)
if vnc.isalive():
vnc.wait()
-
+
assert vnc.exitstatus == exitcode, vnc.exitstatus
def assertFilesEqual(self, filename, othername):
@@ -52,4 +52,6 @@ def testExpectFailsExample(self):
try:
self.run_vncdotool('expect %s 0' % simple, exitcode=10)
except pexpect.TIMEOUT:
- pas:), exitcode=10)), exitcode=10)
+ pass
+ else:
+ raise AssertionError('should timeout')

0 comments on commit 68c19a7

Please sign in to comment.