summaryrefslogtreecommitdiff
path: root/tests/cdash
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-01-02 18:51:25 +0000
committerBenny Prijono <bennylp@teluu.com>2009-01-02 18:51:25 +0000
commit177296a8db057480c5dbc22a03c7d026eebe9c36 (patch)
tree12a5d3da74ca361744ac068010d359a8c4ac02be /tests/cdash
parent05b6736a9a0d834194be217cafeeeab0dd73af67 (diff)
Fixed error with platform detection in cdash test
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2411 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/cdash')
-rw-r--r--tests/cdash/builder.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/cdash/builder.py b/tests/cdash/builder.py
index 98e81e6c..0ce15b74 100644
--- a/tests/cdash/builder.py
+++ b/tests/cdash/builder.py
@@ -191,7 +191,7 @@ class TestBuilder:
self.saved_user_mak = f.read()
f.close()
if True:
- f = open(name, "wt")
+ f = open(name, "w")
f.write(self.user_mak)
f.close()
# Override config_site.h
@@ -301,16 +301,16 @@ class GNUTestBuilder(TestBuilder):
else:
proc = subprocess.Popen("sh "+self.config.base_dir+"/config.guess",
shell=True, stdout=subprocess.PIPE)
- sys = proc.stdout.readline().rstrip(" \r\n")
- build_name = sys + "-"+gcc_version(self.cross_compile + "gcc")
- suffix = "-" + sys
+ plat = proc.stdout.readline().rstrip(" \r\n")
+ build_name = plat + "-"+gcc_version(self.cross_compile + "gcc")
+ suffix = "-" + plat
if self.build_config_name:
build_name = build_name + "-" + self.build_config_name
cmds = []
cmds.extend(update_ops)
cmds.append(Operation(Operation.CONFIGURE, "sh ./configure"))
- if sys.platform == "win32":
+ if sys.platform=="win32":
# Don't build python module on Mingw
cmds.append(Operation(Operation.BUILD,
"sh -c 'make distclean && make dep && make'"))