From 6378d775a99ba751c8c9892a507b1631cfa89076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= <cedric.dsm@tiolive.com> Date: Thu, 3 Nov 2011 15:23:04 +0100 Subject: [PATCH] Cleanup old code --- slapos/recipe/seleniumrunner/testrunner.py | 23 ---------------------- 1 file changed, 23 deletions(-) diff --git a/slapos/recipe/seleniumrunner/testrunner.py b/slapos/recipe/seleniumrunner/testrunner.py index 1d9ffeeaa..b81f60ee6 100644 --- a/slapos/recipe/seleniumrunner/testrunner.py +++ b/slapos/recipe/seleniumrunner/testrunner.py @@ -49,23 +49,6 @@ def run(args): config['base_url'], config['user'], config['password'])) # TODO assert getresult is None - #xvfb = Popen([config['xvfb_binary'], config['display']], stdout=PIPE) - #os.environ['DISPLAY'] = config['display'] - #sleep(10) - # - #command = [] - #command.append(config['browser_binary']) - #for browser_argument in config['browser_argument_list']: - # command.append(browser_argument) - #command.append(test_url) - #browser = Popen(command, stdout=PIPE) - # - #erp5_report.reportStart() - # - ## Wait for test to be finished - #while getStatus(config['base_url']) is '': - # sleep(10) - os.environ['DISPLAY'] = config['display'] xvfb = Xvfb(config['etc_directory'], config['xvfb_binary']) profile_dir = os.path.join(config['etc_directory'], 'profile') @@ -125,9 +108,3 @@ def assembleTestUrl(base_url, suite_name, user, password): "resultsUrl=%s/postResults&auto=on&__ac_name=%s&__ac_password=%s" % ( base_url, suite_name, base_url, user, password) return test_url - -#def terminateXvfb(process, display): -# process.kill() -# lock_filepath = '/tmp/.X%s-lock' % display.replace(":", "") -# if os.path.exists(lock_filepath): -# os.system('rm %s' % lock_filepath) -- 2.30.9