diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-08-18 04:16:04 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-08-18 04:16:04 +0000 |
commit | 87e51501ed219510c40d788f01f82a76c66d376d (patch) | |
tree | b658a40e4409c9e5839d7b95165f40c0a6425869 /tests/automated | |
parent | 1c2f452eb2fea2f0188f122c8e22bc575507ac27 (diff) |
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
Diffstat (limited to 'tests/automated')
-rwxr-xr-x | tests/automated/configure.py | 9 |
1 files changed, 7 insertions, 2 deletions
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] |