Searched refs:os (Results 1 - 25 of 302) sorted by relevance

1234567891011>>

/trex/scripts/automation/trex_control_plane/stl/examples/
H A Dstl_path.py1 import sys, os namespace
6 STL_PROFILES_PATH = os.path.join(os.pardir, os.pardir, os.pardir, os.pardir, 'stl')
/trex/scripts/automation/trex_control_plane/stl/console/
H A Dstl_path.py1 import sys, os namespace
6 STL_PROFILES_PATH = os.path.join(os.pardir, 'profiles')
H A Dtrex_root_path.py3 import os namespace
9 file_path = os.path.dirname(os.path.realpath(__file__))
11 components = file_path.split(os.sep)
12 sys.path.append( str.join(os.sep, components[:components.index(root_dirname)+1]) )
/trex/scripts/automation/trex_control_plane/stf/trex_stf_lib/
H A Douter_packages.py4 import os namespace
7 CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
8 PACKAGE_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir, os.pardir, 'external_libs'))
9 SCRIPTS_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os
[all...]
H A Dexternal_packages.py4 import os namespace
6 CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
7 ROOT_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir)) # path to trex_control_plane directory
8 PATH_TO_PYTHON_LIB = os.path.abspath(os.path.join(ROOT_PATH, os.pardir, os
[all...]
/trex/scripts/automation/trex_control_plane/examples/
H A Dtrex_root_path.py3 import os namespace
9 file_path = os.path.dirname(os.path.realpath(__file__))
11 components = file_path.split(os.sep)
12 sys.path.append( str.join(os.sep, components[:components.index(root_dirname)+1]) )
/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/
H A Dtrex_stl_ext.py2 import os namespace
7 TREX_STL_EXT_PATH = os.environ.get('TREX_STL_EXT_PATH')
10 if not TREX_STL_EXT_PATH or not os.path.exists(TREX_STL_EXT_PATH):
11 CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
12 TREX_STL_EXT_PATH = os.path.normpath(os.path.join(CURRENT_PATH, os.pardir, os.pardir, 'external_libs'))
13 if not os
[all...]
/trex/scripts/automation/trex_control_plane/common/
H A Dexternal_packages.py4 import os namespace
6 CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
7 ROOT_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir)) # path to trex_control_plane directory
8 PATH_TO_PYTHON_LIB = os.path.abspath(os.path.join(ROOT_PATH, os.pardir, os
[all...]
/trex/scripts/external_libs/requests/requests/
H A Dcerts.py14 import os.path namespace
22 return os.path.join(os.path.dirname(__file__), 'cacert.pem')
/trex/scripts/stl/
H A Dudp_1pkt_pcap.py2 import os namespace
6 CP = os.path.join(os.path.dirname(__file__))
11 return [STLStream(packet = STLPktBuilder(pkt = os.path.join(CP, "yaml/udp_64B_no_crc.pcap")),
H A Dudp_3pkt_pcap.py2 import os namespace
6 CP = os.path.join(os.path.dirname(__file__))
14 packet = STLPktBuilder(pkt = os.path.join(CP, "yaml/udp_64B_no_crc.pcap")),
20 packet = STLPktBuilder(pkt = os.path.join(CP, "yaml/udp_594B_no_crc.pcap")),
26 packet = STLPktBuilder(pkt = os.path.join(CP, "yaml/udp_1518B_no_crc.pcap")),
H A Dpcap.py1 import os namespace
21 return STLPcap(os.path.join(os.path.dirname(__file__), 'sample.pcap'))
/trex/scripts/automation/trex_control_plane/client_utils/
H A Dexternal_packages.py4 import os namespace
10 CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
11 ROOT_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir)) # path to trex_control_plane directory
12 PATH_TO_PYTHON_LIB = os.path.abspath(os.path.join(ROOT_PATH, os.pardir, os
[all...]
/trex/scripts/automation/trex_control_plane/server/
H A Douter_packages.py4 import os namespace
8 CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
9 ROOT_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir)) # path to trex_control_plane directory
10 PATH_TO_PYTHON_LIB = os.path.abspath(os.path.join(ROOT_PATH, os.pardir, os
[all...]
/trex/scripts/automation/trex_control_plane/unit_tests/
H A Dnose_outer_packages.py4 import platform,os namespace
6 CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
7 ROOT_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir)) # path to trex_control_plane directory
8 PATH_TO_PYTHON_LIB = os.path.abspath(os.path.join(ROOT_PATH, 'python_lib'))
23 full_path = os.path.join(PATH_TO_PYTHON_LIB, p)
24 fix_path = os
[all...]
H A Douter_packages.py2 import os namespace
5 EXT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, 'external_libs'))
6 if not os.path.exists(EXT_PATH):
25 return os.path.normcase(os
[all...]
/trex/scripts/automation/regression/
H A Douter_packages.py3 import platform, os namespace
6 CURRENT_PATH = os.path.dirname(os.path.realpath(__file__)) # alternate use with: os.getcwd()
7 TREX_PATH = os.getenv('TREX_UNDER_TEST') # path to <trex-core>/scripts directory, env. variable TREX_UNDER_TEST should override it.
8 if not TREX_PATH or not os.path.isfile('%s/trex_daemon_server' % TREX_PATH):
9 TREX_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir, os
[all...]
H A DCustomLogger.py3 import os namespace
16 log_path = os.getcwd()+'/trex_log.log'
18 directory = os.path.dirname(log_path)
19 if not os.path.exists(directory):
20 os.makedirs(directory)
/trex/scripts/automation/trex_control_plane/doc/
H A Dconf.py16 import os namespace
22 # documentation root, use os.path.abspath to make it absolute, like shown here.
23 sys.path.insert(0, os.path.abspath('../stf/trex_stf_lib'))
24 sys.path.insert(0, os.path.abspath('../client_utils'))
25 sys.path.insert(0, os.path.abspath('../examples'))
26 sys.path.insert(0, os.path.abspath('../common'))
28 external_libs_path = os.path.join(os.pardir, os.pardir, os
[all...]
/trex/scripts/external_libs/lockfile-0.10.2/lockfile/
H A Dlinklockfile.py4 import os namespace
30 os.link(self.unique_name, self.lock_file)
33 nlinks = os.stat(self.unique_name).st_nlink
41 os.unlink(self.unique_name)
57 elif not os.path.exists(self.unique_name):
59 os.unlink(self.unique_name)
60 os.unlink(self.lock_file)
63 return os.path.exists(self.lock_file)
67 os.path.exists(self.unique_name) and
68 os
[all...]
H A Dmkdirlockfile.py4 import os namespace
21 self.unique_name = os.path.join(self.lock_file,
39 os.mkdir(self.lock_file)
44 if os.path.exists(self.unique_name):
67 elif not os.path.exists(self.unique_name):
69 os.unlink(self.unique_name)
70 os.rmdir(self.lock_file)
73 return os.path.exists(self.lock_file)
77 os.path.exists(self.unique_name))
80 if os
[all...]
H A Dsymlinklockfile.py4 import os namespace
16 self.unique_name = os.path.split(self.unique_name)[1]
32 os.symlink(self.unique_name, self.lock_file)
58 os.unlink(self.lock_file)
61 return os.path.islink(self.lock_file)
64 return os.path.islink(self.lock_file) and \
65 os.readlink(self.lock_file) == self.unique_name
68 if os.path.islink(self.lock_file): # exists && link
69 os.unlink(self.lock_file)
/trex/scripts/automation/trex_control_plane/doc_stl/
H A Dconf.py16 import os namespace
37 # documentation root, use os.path.abspath to make it absolute, like shown here.
38 sys.path.insert(0, os.path.abspath('../stl'))
40 external_libs_path = os.path.join(os.pardir, os.pardir, os.pardir, "external_libs")
41 external_libs_pkgs = [os.path.join(external_libs_path, p)
42 for p in os.listdir(external_libs_path)
43 if os
[all...]
/trex/scripts/external_libs/progressbar-2.2/
H A Dsetup.py3 import os namespace
7 if os.stat('progressbar.py').st_mtime > os.stat('README').st_mtime:
/trex/scripts/
H A Dmaster_daemon.py2 import os namespace
14 sys.path.append(os.path.join('automation', 'trex_control_plane', 'server'))
38 ret_code, stdout, stderr = run_command('wget %s -O %s' % (package_path, os.path.join(tmp_dir, file_name)), timeout = 600)
40 ret_code, stdout, stderr = run_command('rsync -Lc %s %s' % (package_path, os.path.join(tmp_dir, file_name)), timeout = 300)
44 tmp_files = glob(os.path.join(tmp_dir, '*'))
46 if os.path.isdir(tmp_file) and not os.path.islink(tmp_file):
49 ret_code, stdout, stderr = run_command('tar -xzf %s' % os.path.join(tmp_dir, file_name), timeout = 120, cwd = tmp_dir)
52 tmp_files = glob(os.path.join(tmp_dir, '*'))
55 if os
[all...]

Completed in 13 milliseconds

1234567891011>>