cmake: add custom targets docker-run-${DOCKER_INDEX}

This commit is contained in:
Ryo Nakamura
2025-08-12 14:45:10 +09:00
parent a0153414f6
commit ecee66d03f
2 changed files with 18 additions and 2 deletions

View File

@@ -28,5 +28,11 @@ for port in 22 8022; do
ssh-keyscan -p $port ::1 >> ${HOME}/.ssh/known_hosts
done
# Run test
python3 -m pytest -v ../test
if [ $# -gt 0 ]; then
# command arguments are passed, exec them
"$@"
else
# no arguments passed, run the test
python3 -m pytest -v ../test
fi