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'))
102 self.stdout = ps.stdout.read().decode()
109 with open(os.path.join(temp_dir, out_file)) as f:
123 print("[stdout]")
124 print(self.stdout)
142 return self._run_conf('--oldaskconfig', dot_config=dot_config,
152 return self._run_conf('--oldconfig', dot_config=dot_config,
161 return self._run_conf('--olddefconfig', dot_config=dot_config)
169 defconfig_path = os.path.join(self._test_dir, defconfig)
170 return self._run_conf('--defconfig={}'.format(defconfig_path))
174 all_config_path = os.path.join(self._test_dir, all_config)
177 return self._run_conf('--{}config'.format(mode), extra_env=extra_env)
231 return self._run_conf('--savedefconfig', out_file='defconfig')
239 return self._run_conf('--listnewconfig', dot_config=dot_config,
249 with open(os.path.join(self._test_dir, expected)) as f:
279 """Check if resulted stdout contains expected data.
284 return self._contains('stdout', expected)
287 """Check if resulted stdout exactly matches expected data.
292 return self._matches('stdout', expected)