Lines Matching defs:os
10 import os
14 if not os.path.isfile("@ohos.test.d.ts"):
16 if not os.path.exists("out"):
17 os.mkdir("out")
18 ret = os.popen("node ../../../src/gen/cmd_gen.js -f @ohos.test.d.ts -o ./out")
21 os.chdir("out")
22 ret = os.popen("npx node-gyp configure build")
23 os.chdir("..")
31 os.system("npx mocha test.js")
35 work_path = os.path.split(sys.argv[0])[0]
36 os.chdir(work_path)
40 if os.path.isdir(fn):
41 os.chdir(fn)
43 os.chdir("..")
47 for fn in os.listdir("."):
48 if os.path.isdir(fn):
49 os.chdir(fn)
51 os.chdir("..")