diff options
author | Marc Laukien <marc@zeroc.com> | 2002-05-28 22:08:47 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-05-28 22:08:47 +0000 |
commit | 312f7e4c50d15274a0af2883c32d7b2805f7f4e7 (patch) | |
tree | 291849fe448d04a7904888603565b0f4d6192b39 /java/test/IceXML/encoding/run.py | |
parent | fixes (diff) | |
download | ice-312f7e4c50d15274a0af2883c32d7b2805f7f4e7.tar.bz2 ice-312f7e4c50d15274a0af2883c32d7b2805f7f4e7.tar.xz ice-312f7e4c50d15274a0af2883c32d7b2805f7f4e7.zip |
fixes
Diffstat (limited to 'java/test/IceXML/encoding/run.py')
-rwxr-xr-x | java/test/IceXML/encoding/run.py | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/java/test/IceXML/encoding/run.py b/java/test/IceXML/encoding/run.py index fdea049dfa4..52db9c7f846 100755 --- a/java/test/IceXML/encoding/run.py +++ b/java/test/IceXML/encoding/run.py @@ -1,41 +1,41 @@ -#!/usr/bin/env python
-# **********************************************************************
-#
-# Copyright (c) 2001
-# MutableRealms, Inc.
-# Huntsville, AL, USA
-#
-# All Rights Reserved
-#
-# **********************************************************************
-
-import os, sys
-
-for toplevel in [".", "..", "../..", "../../..", "../../../.."]:
- toplevel = os.path.normpath(toplevel)
- if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")):
- break
-else:
- raise "can't find toplevel directory!"
-
-sys.path.append(os.path.join(toplevel, "config"))
-import TestUtil
-
-testdir = os.path.join(toplevel,"test", "IceXML", "encoding")
-classpath = os.path.join(toplevel, "lib") + TestUtil.sep + os.path.join(testdir, "classes") + \
- TestUtil.sep + os.getenv("CLASSPATH", "")
-client = "java -classpath \"" + classpath + "\" Client"
-
-print "starting client...",
-clientPipe = os.popen(client)
-print "ok"
-
-for output in clientPipe.xreadlines():
- print output,
-
-clientStatus = clientPipe.close()
-
-if clientStatus:
- sys.exit(1)
-
-sys.exit(0)
+#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2001 +# MutableRealms, Inc. +# Huntsville, AL, USA +# +# All Rights Reserved +# +# ********************************************************************** + +import os, sys + +for toplevel in [".", "..", "../..", "../../..", "../../../.."]: + toplevel = os.path.normpath(toplevel) + if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")): + break +else: + raise "can't find toplevel directory!" + +sys.path.append(os.path.join(toplevel, "config")) +import TestUtil + +testdir = os.path.join(toplevel,"test", "IceXML", "encoding") +classpath = os.path.join(toplevel, "lib") + TestUtil.sep + os.path.join(testdir, "classes") + \ + TestUtil.sep + os.getenv("CLASSPATH", "") +client = "java -classpath \"" + classpath + "\" Client" + +print "starting client...", +clientPipe = os.popen(client) +print "ok" + +for output in clientPipe.xreadlines(): + print output, + +clientStatus = clientPipe.close() + +if clientStatus: + sys.exit(1) + +sys.exit(0) |