(example_path, install_dir)
| 331 | |
| 332 | |
| 333 | def _sentinel_file_checks(example_path, install_dir): |
| 334 | script_ext = "bat" if sys.platform.startswith("win") else "sh" |
| 335 | for script_prefix in "pre", "post", "test": |
| 336 | script = f"{script_prefix}_install.{script_ext}" |
| 337 | sentinel = f"{script_prefix}_install_sentinel.txt" |
| 338 | if (example_path / script).exists() and not (install_dir / sentinel).exists(): |
| 339 | raise AssertionError( |
| 340 | f"Sentinel file for {script_prefix}_install not found! " |
| 341 | f"{install_dir} contents:\n" + "\n".join(sorted(map(str, install_dir.iterdir()))) |
| 342 | ) |
| 343 | |
| 344 | |
| 345 | def calculate_msi_install_path(config_path: Path) -> Path: |
no outgoing calls
no test coverage detected