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.)
62 shutil.copyfile(os.path.join(self._test_dir, dot_config),
63 os.path.join(temp_dir, '.config'))
67 stdout=subprocess.PIPE,
74 ps.stdin.write(in_keys.encode('utf-8'))
83 self.stdout = ps.stdout.read().decode()
90 with open(os.path.join(temp_dir, out_file)) as f:
104 print("[stdout]")
105 print(self.stdout)
123 return self._run_conf('--oldaskconfig', dot_config=dot_config,
133 return self._run_conf('--oldconfig', dot_config=dot_config,
142 return self._run_conf('--olddefconfig', dot_config=dot_config)
150 defconfig_path = os.path.join(self._test_dir, defconfig)
151 return self._run_conf('--defconfig={}'.format(defconfig_path))
155 all_config_path = os.path.join(self._test_dir, all_config)
160 return self._run_conf('--{}config'.format(mode), extra_env=extra_env)
208 return self._run_conf('--savedefconfig', out_file='defconfig')
216 return self._run_conf('--listnewconfig', dot_config=dot_config,
226 with open(os.path.join(self._test_dir, expected)) as f:
256 """Check if resulted stdout contains expected data.
261 return self._contains('stdout', expected)
264 """Check if resulted stdout exactly matches expected data.
269 return self._matches('stdout', expected)