File: test-server.py

package info (click to toggle)
python-orbit 0.3.1-12
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,492 kB
  • ctags: 801
  • sloc: sh: 9,444; ansic: 5,642; python: 1,141; makefile: 126
file content (16 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
import CORBA, os
import TestHarness

orb = CORBA.ORB_init([],CORBA.ORB_ID)
poa = orb.resolve_initial_references("RootPOA")
poa._get_the_POAManager().activate()

t = TestHarness.TestHarness(orb, poa)
f = open("ior","w")
f.write(orb.object_to_string(t._this()))
f.close()
f = open("pid","w")
f.write(str(os.getpid()))
f.close()
orb.run()