From 87e51501ed219510c40d788f01f82a76c66d376d Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 18 Aug 2010 04:16:04 +0000 Subject: Automated test (re #1111): modified configure.py to detect GNU host instead of always presenting vs (visual studio) as the default host git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3281 74dad513-b988-da41-8d7b-12977e46ad98 --- tests/automated/configure.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/automated/configure.py b/tests/automated/configure.py index 2d530d08..377fed7e 100755 --- a/tests/automated/configure.py +++ b/tests/automated/configure.py @@ -284,10 +284,15 @@ Where OPTIONS: return 1 if not build_type: - print "Enter the build type (values: vs, gnu, s60) [vs]: ", + defval = "vs" + if "SHELL" in os.environ: + shell = os.environ["SHELL"] + if shell.find("sh") > -1: + defval = "gnu" + print "Enter the build type (values: vs, gnu, s60) [%s]: " % (defval), build_type = sys.stdin.readline().replace("\n", "").replace("\r", "") if not build_type: - build_type = "vs" + build_type = defval tpl_file = args[len(args)-1] -- cgit v1.2.3