Download gpudrive-main/conftest.py from lzhts1/FromSim2Real: direct link, hf CLI and curl.
- Browser
- Download file 738 Bytes
-
https://huggingface.co/datasets/lzhts1/FromSim2Real/resolve/main/gpudrive-main/conftest.py
- Command line
-
hf download hf://datasets/lzhts1/FromSim2Real/gpudrive-main/conftest.py
-
curl -L -o conftest.py https://huggingface.co/datasets/lzhts1/FromSim2Real/resolve/main/gpudrive-main/conftest.py
738 Bytes
| import subprocess | |
| import pytest | |
| import os | |
| def run_ctest(): | |
| build_dir = "build" # Replace this with the path to your build directory | |
| print("Running ctest in", os.path.abspath(build_dir)) | |
| # Run ctest in the build directory | |
| try: | |
| result = subprocess.run(["ctest"], check=True, cwd=build_dir, capture_output=True, text=True) | |
| print("ctest stdout:") | |
| print(result.stdout) | |
| print("ctest stderr:") | |
| print(result.stderr) | |
| except subprocess.CalledProcessError as e: | |
| print(f"ctest failed with error code {e.returncode}") | |
| print("Error output:") | |
| print(e.output) | |
| raise # Re-raise the exception to make pytest fail | |