Beispiel #1
0
    #
    env = TestUtil.getTestEnv("py", os.getcwd())
    env["RUNNING_TEST_CONTROLLER_WITH_ENV"] = "yes"
    try:

        #
        # The HttpServer relies on the ICE_HOME environment variable
        # to find the Ice for JavaScript installation so we make sure
        # here that ICE_HOME is set if we are running against a binary
        # distribution (i.e.: TestUtil.iceHome is not None)
        #
        if TestUtil.iceHome:
            env["ICE_HOME"] = TestUtil.iceHome

        if TestUtil.printenv:
            TestUtil.dumpenv(env, "py")
        args = [sys.executable, "run.py"]
        for a in sys.argv[1:]:
            args.append(a)
        sys.exit(os.spawnve(os.P_WAIT, sys.executable, args, env))
    except KeyboardInterrupt:
        sys.exit(0)
    finally:
        if sys.platform == "darwin":
            print("")
            print("To remove the certificate trust settings, run: `" + sys.argv[0] + " --clean'")
    sys.exit(1)

import TestUtil, Ice, Expect
Ice.loadSlice("\"" + os.path.join(TestUtil.toplevel, "js", "test", "Common", "Controller.ice") + "\"")
import Test