(tmp_path)
| 152 | |
| 153 | |
| 154 | def test_basic_run_hook(tmp_path): |
| 155 | ret, out = lang_base.basic_run_hook( |
| 156 | Prefix(tmp_path), |
| 157 | 'echo hi', |
| 158 | ['hello'], |
| 159 | ['file', 'file', 'file'], |
| 160 | is_local=False, |
| 161 | require_serial=False, |
| 162 | color=False, |
| 163 | ) |
| 164 | assert ret == 0 |
| 165 | out = out.replace(b'\r\n', b'\n') |
| 166 | assert out == b'hi hello file file file\n' |
| 167 | |
| 168 | |
| 169 | def test_hook_cmd(): |