from java.lang.Thread import currentThread t1 = currentThread() engine2.setVar("t1", t1) engine2.runScript("src/test/resources/test-data/script", "thread-test-2.py")
from java.lang.Thread import currentThread t2 = currentThread() if t1 == t2: maxObject.error("same thread in two engines") else: maxObject.post("thread test OK")