conftest.py (c13aca79ff3c4af5fd31a5b2743a90eba6e36a26) | conftest.py (b75b0a819af9f78fc395b189cddd40f590194d20) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# Copyright (C) 2018 Masahiro Yamada <yamada.masahiro@socionext.com> 4# 5 6""" 7Kconfig unit testing framework. 8 --- 39 unchanged lines hidden (view full) --- 48 extra_env: additional environments 49 returncode: exit status of the Kconfig executable 50 """ 51 command = [CONF_PATH, mode, 'Kconfig'] 52 53 # Override 'srctree' environment to make the test as the top directory 54 extra_env['srctree'] = self._test_dir 55 | 1# SPDX-License-Identifier: GPL-2.0 2# 3# Copyright (C) 2018 Masahiro Yamada <yamada.masahiro@socionext.com> 4# 5 6""" 7Kconfig unit testing framework. 8 --- 39 unchanged lines hidden (view full) --- 48 extra_env: additional environments 49 returncode: exit status of the Kconfig executable 50 """ 51 command = [CONF_PATH, mode, 'Kconfig'] 52 53 # Override 'srctree' environment to make the test as the top directory 54 extra_env['srctree'] = self._test_dir 55 |
56 # Clear KCONFIG_DEFCONFIG_LIST to keep unit tests from being affected 57 # by the user's environment. 58 extra_env['KCONFIG_DEFCONFIG_LIST'] = '' 59 |
|
56 # Run Kconfig in a temporary directory. 57 # This directory is automatically removed when done. 58 with tempfile.TemporaryDirectory() as temp_dir: 59 60 # if .config is given, copy it to the working directory 61 if dot_config: 62 shutil.copyfile(os.path.join(self._test_dir, dot_config), 63 os.path.join(temp_dir, '.config')) --- 228 unchanged lines hidden --- | 60 # Run Kconfig in a temporary directory. 61 # This directory is automatically removed when done. 62 with tempfile.TemporaryDirectory() as temp_dir: 63 64 # if .config is given, copy it to the working directory 65 if dot_config: 66 shutil.copyfile(os.path.join(self._test_dir, dot_config), 67 os.path.join(temp_dir, '.config')) --- 228 unchanged lines hidden --- |