Lines Matching refs:os
36 import os
41 SCRIPT_DIR = os.path.dirname(__file__) or '.'
44 gtest_tests_util_dir = os.path.join(SCRIPT_DIR, '../gtest/test')
45 if os.path.isdir(gtest_tests_util_dir):
48 GTEST_TESTS_UTIL_DIR = os.path.join(SCRIPT_DIR, '../../gtest/test')
80 exit_code: the result value of os.system(command).
83 if os.name == 'nt':
84 # On Windows, os.WEXITSTATUS() doesn't work and os.system() returns
88 # On Unix, os.WEXITSTATUS() must be used to extract the exit status
89 # from the result of os.system().
90 if os.WIFEXITED(exit_code):
91 return os.WEXITSTATUS(exit_code)