Lines Matching +full:stdout +full:- +full:path
1 # SPDX-License-Identifier: GPL-2.0
18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf'))
24 This class provides methods to run text-based interface of Kconfig
26 stdout, and stderr. It also provides methods to compare those
36 self._test_dir = os.path.dirname(str(request.fspath))
41 """Run text-based Kconfig executable and save the result.
43 mode: input mode option (--oldaskconfig, --defconfig=<file> etc.)
66 shutil.copyfile(os.path.join(self._test_dir, dot_config),
67 os.path.join(temp_dir, '.config'))
71 stdout=subprocess.PIPE,
78 ps.stdin.write(in_keys.encode('utf-8'))
87 self.stdout = ps.stdout.read().decode()
94 with open(os.path.join(temp_dir, out_file)) as f:
108 print("[stdout]")
109 print(self.stdout)
127 return self._run_conf('--oldaskconfig', dot_config=dot_config,
137 return self._run_conf('--oldconfig', dot_config=dot_config,
146 return self._run_conf('--olddefconfig', dot_config=dot_config)
154 defconfig_path = os.path.join(self._test_dir, defconfig)
155 return self._run_conf('--defconfig={}'.format(defconfig_path))
159 all_config_path = os.path.join(self._test_dir, all_config)
164 return self._run_conf('--{}config'.format(mode), extra_env=extra_env)
212 return self._run_conf('--savedefconfig', out_file='defconfig')
220 return self._run_conf('--listnewconfig', dot_config=dot_config,
230 with open(os.path.join(self._test_dir, expected)) as f:
260 """Check if resulted stdout contains expected data.
265 return self._contains('stdout', expected)
268 """Check if resulted stdout exactly matches expected data.
273 return self._matches('stdout', expected)