From 7fd3017b5f2df3b9c94d97d137167012e3004d22 Mon Sep 17 00:00:00 2001 From: CocosRobot Date: Mon, 17 Mar 2014 11:49:18 +0800 Subject: [PATCH] modify autotest.py for use mac app. --- tools/jenkins-scripts/autotest.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/jenkins-scripts/autotest.py b/tools/jenkins-scripts/autotest.py index 5ade2a4e34..86fb929a7c 100755 --- a/tools/jenkins-scripts/autotest.py +++ b/tools/jenkins-scripts/autotest.py @@ -1,3 +1,4 @@ +#!/usr/bin/python import os import sys import subprocess @@ -25,7 +26,7 @@ def autotest(type): soc.connect((HOST_ADNROID, PORT)) if type == TYPE_IOS: soc.connect((HOST_IOS, PORT)) - time.sleep(3) + time.sleep(1) print 'autotest run:' soc.send('autotest run\r\n') @@ -65,8 +66,8 @@ def MAC_BUILD(): if not cleanProj(): print '**CLEAN FAILED**' if not buildProj(): - cleanProj() - buildProj() + print '**BUILD FAILED**' + return False if not openProj(): return False time.sleep(sleep_time) @@ -118,8 +119,10 @@ def ANDROID_BUILD(): #----------------autotest-android build and run end----------------# def main(): + print 'will build mac project.' suc_build_mac = MAC_BUILD() - suc_build_android = ANDROID_BUILD() + #print 'will build android project.' + #suc_build_android = ANDROID_BUILD() if suc_build_mac: autotest(TYPE_MAC) if suc_build_android: