diff options
author | Alon Levy <alevy@redhat.com> | 2011-07-28 19:16:30 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-07-28 19:16:30 +0300 |
commit | 70ecc46bbebb8c5be78d02f163308879781f8051 (patch) | |
tree | bf8b6a5c450346af7fcabac7add2106c6252b05d | |
parent | 115b16df48908ebe24c7c856e6ce6b26d9a88bb2 (diff) |
spice_async_s3_tests: run xephyr here so it doesn't close/reopen between tests
-rwxr-xr-x | spice_async_s3_tests | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/spice_async_s3_tests b/spice_async_s3_tests index c6ed897..cba9649 100755 --- a/spice_async_s3_tests +++ b/spice_async_s3_tests @@ -2,14 +2,17 @@ import os import sys +import subprocess +xephyr = subprocess.Popen(['Xephyr', ':2.0', '-screen', '1024x768' ]) +os.environ['DISPLAY'] = ':2.0' passed = 0 -base_args = lambda test: ('--guestdebug 2 --second --xephyr --shutdown --wintest %s' % test).split() +base_args = lambda test: ('--port 9999 --qemu rhel6 --guestdebug 2 --second --shutdown --wintest %s' % test).split() tests = [ - ("shutdown", []), - ("shutdown", ['--qxl', '2']), - ("suspend2", ['--qxl', '2']), +# ("shutdown", []), +# ("shutdown", ['--qxl', '2']), ("suspend", []), ("resolution1", []), + ("suspend2", ['--qxl', '2']), ("resolution2", ['--qxl', '2']), ] for test, extra in tests: @@ -20,3 +23,4 @@ for test, extra in tests: passed += 1 print "-"*80 print "passed %d/%d" % (passed, len(tests)) +xephyr.kill() |