Lines Matching full:os

11 import os
17 ZEPHYR_BASE = os.getenv('ZEPHYR_BASE')
18 sys.path.insert(0, os.path.join(ZEPHYR_BASE, 'scripts', 'pylib', 'twister'))
103 os.path.join('testsuites', 'tests', 'test_ztest.c'),
122 os.path.join('testsuites', 'tests', 'test_a', 'test_ztest_error.c'),
133 os.path.join('testsuites', 'tests', 'test_a', 'test_ztest_error_1.c'),
144 os.path.join(
160 os.path.join(
176 # os.path.join(
212 result: ScanPathResult = scan_file(os.path.join(test_data, test_file))
266 mock.patch('os.name', os_name), \
286 os.path.join(ZEPHYR_BASE, 'scripts', 'tests'),
309 TEST_DATA_REL_PATH = os.path.join(
320 os.path.join(ZEPHYR_BASE, TEST_DATA_REL_PATH),
321 os.path.join(ZEPHYR_BASE, TEST_DATA_REL_PATH, 'tests', 'test_a'),
322 os.path.join(
323 os.sep,
329 os.path.join(
330 os.sep,
345 os.path.join(
350 os.path.join(os.sep, TEST_DATA_REL_PATH, 'test_b', 'test_b.check_1'),
351 os.path.join(os.sep, TEST_DATA_REL_PATH, 'test_b', 'test_b.check_1')
354 os.path.join(ZEPHYR_BASE, 'scripts', 'tests'),
355 os.path.join(ZEPHYR_BASE, 'scripts', 'tests'),
357 os.path.join('scripts', 'tests', 'test_b.check_1')
446 (True, [os.path.join('', 'home', 'user', 'dummy_path', 'dummy.c'),
447 os.path.join('', 'home', 'user', 'dummy_path', 'dummy.cpp')]),
457 old_dir = os.path.join('', 'home', 'user', 'dummy_base_dir')
458 new_path = os.path.join('', 'home', 'user', 'dummy_path')
515 with mock.patch('os.path.isdir', return_value=isdir), \
516 mock.patch('os.getcwd', return_value=cur_dir), \
518 mock.patch('os.chdir', side_effect=mock_chdir) as chdir_mock:
529 os.path.join('dummy', 'path'),
563 os.path.join('dummy', 'path'),
588 os.path.join('dummy', 'path'),
630 src_dir_path = os.path.join(testsuite_path, 'src')
651 # as we may call os.stat in code
661 mock.patch('os.stat', mock_stat), \
699 return os.path.normpath(path) == isdir_path
701 with mock.patch('os.path.isdir', mock_isdir):
704 assert os.path.normpath(result) == expected or result == expected
707 TEST_DATA_REL_PATH = os.path.join(
890 os.path.join(ZEPHYR_BASE, 'scripts/tests'),
891 os.path.join(ZEPHYR_BASE, 'scripts/tests'),