Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 49) sorted by relevance

12

/unit/test/unit/
H A Dutils.py2 import os
11 os.chmod(path, 0o777)
13 for root, dirs, files in os.walk(path):
15 os.chmod(os.path.join(root, d), 0o777)
17 os.chmod(os.path.join(root, f), 0o777)
25 if not os.path.exists(f):
118 if os.path.exists(nspath):
119 data = int(os.readlink(nspath)[len(nstype) + 2 : -1])
/unit/test/unit/applications/lang/
H A Djava.py2 import os
20 if not os.path.isdir(app_path):
21 os.makedirs(app_path)
25 for f in os.listdir(script_path):
35 if os.path.isdir(file_path):
43 if not os.path.isdir(web_inf_path):
44 os.makedirs(web_inf_path)
51 if not os.path.isdir(classes_path):
52 os.makedirs(classes_path)
H A Dgo.py1 import os
19 if not os.path.exists(temp_dir):
20 os.mkdir(temp_dir)
24 if not os.path.exists(cache_dir):
25 os.mkdir(cache_dir)
27 env = os.environ.copy()
H A Dphp.py1 import os
17 if not os.path.exists(rootfs + '/app/php/'):
18 os.makedirs(rootfs + '/app/php/')
20 if not os.path.exists(rootfs + '/app/php/' + script):
H A Dpython.py1 import os
28 if not os.path.exists(rootfs + '/app/python/'):
29 os.makedirs(rootfs + '/app/python/')
31 if not os.path.exists(rootfs + '/app/python/' + name):
/unit/tools/
H A Dsetup-unit63 os=""
69 os=$(uname | tr '[:upper:]' '[:lower:]')
71 if [ "$os" != "linux" ] && [ "$os" != "freebsd" ]; then
78 if [ "$os" = "linux" ]; then
98 osName=$os
109 echoDebug "getOS: os=$os osName=$osName osVersion=$osVersion"
110 echo "$os:$osName:$osVersion"
251 osRelease="/etc/os-release"
/unit/test/
H A Dtest_usr1.py1 import os
25 os.rename(log_path, temp_dir + '/' + log_new)
33 assert not os.path.isfile(log_path), 'rename old'
35 os.kill(unit_pid, signal.SIGUSR1)
54 os.rename(log_path, log_path_new)
63 assert not os.path.isfile(log_path), 'rename old'
65 os.kill(unit_pid, signal.SIGUSR1)
H A Dtest_asgi_lifespan.py1 import os
20 os.chmod(base_dir, 0o777)
25 os.chmod(path, 0o777)
30 exists = os.path.isfile(path)
32 os.remove(path)
41 os.remove(path)
H A Dtest_static_symlink.py1 import os
13 os.makedirs(temp_dir + '/assets/dir/dir')
27 os.symlink(temp_dir + '/assets/dir', temp_dir + '/assets/link')
51 os.symlink(temp_dir + '/assets/dir', temp_dir + '/assets/link')
79 os.symlink(
H A Dtest_java_isolation_rootfs.py1 import os
16 os.makedirs(option.temp_dir + '/jars')
17 os.makedirs(option.temp_dir + '/tmp')
18 os.chmod(option.temp_dir + '/tmp', 0o777)
H A Dtest_static_mount.py1 import os
17 os.makedirs(temp_dir + '/assets/dir/mount')
18 os.makedirs(temp_dir + '/assets/dir/dir')
19 os.makedirs(temp_dir + '/assets/mount')
88 os.symlink(temp_dir + '/assets/dir', temp_dir + '/assets/link')
H A Dtest_static_fallback.py1 import os
13 os.makedirs(temp_dir + '/assets/dir')
16 os.makedirs(temp_dir + '/assets/403')
17 os.chmod(temp_dir + '/assets/403', 0o000)
33 os.chmod(temp_dir + '/assets/403', 0o777)
H A Dtest_static.py1 import os
14 os.makedirs(option.temp_dir + '/assets/dir')
117 os.rename(
124 os.rename(temp_dir + '/assets/dir', temp_dir + '/assets/di r')
128 os.rename(temp_dir + '/assets/di r', temp_dir + '/assets/ di r ')
149 os.rename(
169 os.rename(
178 os.rename(
196 os.mkfifo(temp_dir + '/assets/fifo')
H A Dconftest.py4 import os
104 option.current_dir = os.path.abspath(
105 os.path.join(os.path.dirname(__file__), os.pardir)
329 if os.path.isfile(path) or stat.S_ISSOCK(os.stat(path).st_mode):
330 os.remove(path)
374 if not os.path.isfile(unitd):
384 if not os.path.isdir(state):
385 os.mkdir(state)
654 if os.path.isdir(procfile):
655 return len(os.listdir(procfile))
[all …]
H A Dtest_static_share.py1 import os
13 os.makedirs(temp_dir + '/assets/dir')
14 os.makedirs(temp_dir + '/assets/dir2')
/unit/test/python/user_group/
H A Dwsgi.py2 import os
6 uid = os.geteuid()
7 gid = os.getegid()
/unit/test/python/environment/
H A Dwsgi.py1 import os
9 if var in os.environ:
10 body += str(os.environ[var]) + ','
/unit/test/go/ns_inspect/
H A Dapp.go42 str, err := os.Readlink(fmt.Sprintf("/proc/self/ns/%s", nstype))
55 pid := os.Getpid()
58 UID: os.Getuid(),
59 GID: os.Getgid(),
78 _, err = os.Stat(fname);
/unit/test/python/lifespan/empty/
H A Dasgi.py1 import os
13 os.remove(prefix + 'startup')
16 os.remove(prefix + 'shutdown')
/unit/pkg/deb/debian/
H A Dunit.example-python-app1 import os
10 for param in os.environ.keys():
13 output += os.environ[param]
/unit/pkg/rpm/rpmbuild/SOURCES/
H A Dunit.example-python-app1 import os
10 for param in os.environ.keys():
13 output += os.environ[param]
/unit/pkg/deb/debian.module/
H A Dunit.example-python-app1 import os
10 for param in os.environ.keys():
13 output += os.environ[param]
/unit/test/python/path/
H A Dwsgi.py1 import os
6 body = os.pathsep.join(sys.path).encode()
/unit/test/unit/check/
H A Dnode.py1 import os
6 if not os.path.exists(current_dir + '/node/node_modules'):
/unit/test/python/restart/
H A Dlongstart.py1 import os
7 body = str(os.getpid()).encode()

12